From 2fc37fa4e2930e7c8603660301b1b0fe80a6c5a8 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 6 Nov 2026 18:26:38 +0100 Subject: Add previous and next post navigation This adds navigation links between adjacent blog posts, allowing readers to continue browsing without returning to the blog index. The navigation uses a responsive two-column layout and is excluded from Pagefind indexing. --- templates/blog-post.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'templates/blog-post.html') diff --git a/templates/blog-post.html b/templates/blog-post.html index 6c74033..d08ed2f 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -93,4 +93,23 @@ {% endif %} {% endblock %} -{% block content %}{{ render_blog_post(this) }}{% endblock %} +{% block content %} + {{ render_blog_post(this) }} + {% set siblings = this.get_siblings() %} + {% if siblings.next_page or siblings.prev_page %} + + {% endif %} +{% endblock %} -- cgit v1.3.1