Repository navigation
fix(blog): show a window of page links instead of every page - #3
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Summary
The blog list now shows a window of page links (
‹ 1 … 6 7 8 … 13 ›) instead of one link per page.Why
The pagination rendered a link for every page. With 13 pages it already fills a row, and it grows without limit as AutoPilot publishes more posts.
Changes
blog-list.ts:pageWindowreturns the first page, the last page, the current page with one neighbour on each side, and a gap marker where pages are skipped. A gap that would hide a single page shows that page instead.blog-list.html: renders the gaps as…, and adds previous and next links (rel="prev"/rel="next", witharia-labels) so every page stays reachable by crawlers and keyboard users./blog?page=N) are unchanged.Notes for reviewers
None.
Checklist
developand is about one thingfeat(scope): ...,fix(scope): ...)src/frontend/src/app/core/models