feat: v2.21.0 paging for homepage, likes and admin dashboard

The homepage showed only the 20 newest notes and /likes the 50 newest,
with no way back. The admin dashboard paged list_notes()'s default 50
newest, so it always said 'Page 1 of 2'. All three now count with
count_notes() and fetch one page with limit/offset. Public pages get
'<- Newer / Page N of M / Older ->' with rel=prev/next (h-feed paging),
?page=1 redirects to the bare URL, bad pages 404; the dashboard falls
back to the nearest valid page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-27 20:51:30 -07:00
1 parent 9074c9a08c
commit 615354d17e
11 files changed
+373 -60

No files matched your search

+4
View File
@@ -130,6 +130,10 @@ main { flex: 1; margin-bottom: var(--spacing-xl); }
.note-tags .p-category::before { content: "#"; opacity: 0.7; }
.h-entry:not(.note-preview) .note-meta { margin-top: var(--spacing-md); }
.note-nav { margin-top: var(--spacing-lg); font-size: 0.9375rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-md); margin-top: var(--spacing-lg); font-size: 0.9375rem; }
.pager-position { color: var(--color-text-light); margin: 0 auto; }
.pager [rel="next"] { margin-left: auto; }
.pager [rel="prev"] + .pager-position { margin-left: auto; }
.empty-state { text-align: center; padding: var(--spacing-xl); color: var(--color-text-light); }
.form-group { margin-bottom: var(--spacing-md); }