Skip to content

Give newer/older links a fixed left/right position - #25

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 both links (when both existed) were just concatenated in a

, so which one appeared on which side depended on which existed - and with only one link, its horizontal position wasn't fixed at all. Now uses the same three-columns/six-columns/three-columns row layout as the blog-post template's own previousPost/nextPost navigation: "newer" always bottom-left (with a left arrow), "older" always bottom-right (with a right arrow), with an empty column when the corresponding link doesn't apply on that page - so the position never shifts depending on which links happen to be present.

Previously both links (when both existed) were just concatenated in a
<p>, so which one appeared on which side depended on which existed - and
with only one link, its horizontal position wasn't fixed at all. Now uses
the same three-columns/six-columns/three-columns row layout as the
blog-post template's own previousPost/nextPost navigation: "newer" always
bottom-left (with a left arrow), "older" always bottom-right (with a
right arrow), with an empty column when the corresponding link doesn't
apply on that page - so the position never shifts depending on which
links happen to be present.
@noha
noha merged commit d72017d into master Jul 22, 2026
4 checks passed
@noha
noha deleted the feature/blog-overview-newer-older-nav branch July 22, 2026 14:39
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