Skip to content

Add "newer"/"older" navigation to every paginated overview page - #24

Merged
noha merged 1 commit into
masterfrom
feature/blog-overview-newer-older-nav
Jul 22, 2026
Merged

noha merged 1 commit into
masterfrom
feature/blog-overview-newer-older-nav

Conversation

@noha

@noha noha commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Previously only a single "more" link (page 1 -> page 2) existed; pages past the first had no way back and no way further. Replaced with proper bidirectional navigation, mirroring the blog-post template's own previousPost (older)/nextPost (newer) convention:

  • page 1: only "older" (nothing is newer than the newest page)
  • last page: only "newer" (nothing is older than the oldest page)
  • pages in between: both

Verified against the real noha.github.io content (15 posts, 2 pages): blog/index.html has "older" -> /blog/page2.html only, blog/page2.html has "newer" -> /blog/index.html only.

Previously only a single "more" link (page 1 -> page 2) existed; pages
past the first had no way back and no way further. Replaced with proper
bidirectional navigation, mirroring the blog-post template's own
previousPost (older)/nextPost (newer) convention:

- page 1: only "older" (nothing is newer than the newest page)
- last page: only "newer" (nothing is older than the oldest page)
- pages in between: both

Verified against the real noha.github.io content (15 posts, 2 pages):
blog/index.html has "older" -> /blog/page2.html only, blog/page2.html has
"newer" -> /blog/index.html only.
@noha
noha merged commit 1e3fb56 into master Jul 22, 2026
4 checks passed
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