Skip to content

Add first/last pagination controls and fix last-page link - #250

Merged
ohookins merged 1 commit into
mainfrom
fix-pagination-last-page
Aug 7, 2026
Merged

Add first/last pagination controls and fix last-page link#250
ohookins merged 1 commit into
mainfrom
fix-pagination-last-page

Conversation

@ohookins

@ohookins ohookins commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the broken pagination behavior on the final page of the blog index so the "Next" link no longer points to a non-existent page.

What changed

  • Updated the pagination helper to compute page links based on the actual number of generated paginated pages.
  • Added a regression test to prevent the last page from exposing an invalid next link again.

Issue

Fixes #76

@ohookins
ohookins merged commit f61a7d9 into main Aug 7, 2026
2 checks passed
@ohookins ohookins changed the title Fix broken last-page pagination for blog index Add first/last pagination controls and fix last-page link Aug 7, 2026
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.

Last page of paginated view broken

1 participant