Skip to content

feat(posts,tags): canonical site-wide piece numbers#220

Merged
williamzujkowski merged 1 commit intomainfrom
feat/posts-sitewide-numbering
Apr 13, 2026
Merged

feat(posts,tags): canonical site-wide piece numbers#220
williamzujkowski merged 1 commit intomainfrom
feat/posts-sitewide-numbering

Conversation

@williamzujkowski
Copy link
Copy Markdown
Owner

Every post has ONE number across the whole publication (77 → 1). Year and tag filters show those same numbers rather than restarting at 1 per section.

🤖 Generated with Claude Code

/posts/ and /tags/[tag] were numbering within-section (each year/tag
restarted at 1). Now every post has a single canonical piece number
from 1 to postCount site-wide, matching the landing page:

- Latest post = piece #77 (posts.length)
- Oldest post = piece #1
- Same number appears wherever a given post is listed (landing, blog
  archive, tag filter, or individual post header in a future pass)

Implementation: compute pieceNumberById once from the full sorted
collection, pass to BroadsheetEntry.

/posts/ still groups by year (you can see issue 77 sits in the 2026
section, issue 70 starts the 2025 section, etc.) but the numerals
are continuous across the archive.

/tags/[tag] shows the same canonical numbers — filtering doesn't
renumber pieces, it just hides the ones that don't match.

All 4 audits + 16 axe tests pass.
@williamzujkowski williamzujkowski merged commit 491c6a3 into main Apr 13, 2026
2 checks passed
@williamzujkowski williamzujkowski deleted the feat/posts-sitewide-numbering branch April 13, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant