Commit f1772a1
committed
feat: unified chronological feed with pagination (10/page)
Replace separate Writing/Videos/Reading sections with a single
chronological feed of blog posts, channel videos, and HN story
submissions, sorted newest-first and paginated at 10 items per page.
- generate.py: remove _SECTION_DEFS/active_sections; build feed_posts
(writing + channel_posts + hn_stories) sorted by date; render page 1
as index.html and subsequent pages under page/{n}/index.html; remove
hn_stories from sidebar (they appear in the main feed now)
- index.html: unified feed loop with per-source card variants:
✍️ Blog Post — title links to post page, shows labels/excerpt
🎬 Video — thumbnail, links to YouTube
📰 Link Submission — title links to external article, shows HN score/comments
Pagination nav (Newer / Page N of M / Older) rendered when >1 page.
Sidebar retains HN comments and per-playlist My Watching panels.
- style.css: add .post-card__video-thumb and .pagination/* styles1 parent 9836265 commit f1772a1
3 files changed
Lines changed: 176 additions & 174 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
186 | 181 | | |
187 | 182 | | |
188 | 183 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 184 | + | |
203 | 185 | | |
204 | 186 | | |
205 | 187 | | |
206 | 188 | | |
207 | 189 | | |
208 | 190 | | |
209 | 191 | | |
210 | | - | |
| 192 | + | |
211 | 193 | | |
212 | 194 | | |
213 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
214 | 204 | | |
215 | 205 | | |
216 | 206 | | |
| |||
240 | 230 | | |
241 | 231 | | |
242 | 232 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
250 | 238 | | |
251 | 239 | | |
252 | 240 | | |
| |||
292 | 280 | | |
293 | 281 | | |
294 | 282 | | |
295 | | - | |
| 283 | + | |
296 | 284 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
796 | 841 | | |
797 | 842 | | |
798 | 843 | | |
| |||
0 commit comments