feat(posts,tags): canonical site-wide piece numbers#220
Merged
williamzujkowski merged 1 commit intomainfrom Apr 13, 2026
Merged
feat(posts,tags): canonical site-wide piece numbers#220williamzujkowski merged 1 commit intomainfrom
williamzujkowski merged 1 commit intomainfrom
Conversation
/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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