summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/blog-post.html21
1 files changed, 20 insertions, 1 deletions
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 %}
+ <nav aria-label="Post navigation" data-pagefind-ignore>
+ {% if siblings.next_page %}
+ <a href="{{ siblings.next_page | url }}" rel="prev">
+ <small>← Previous post</small>
+ <span>{{ siblings.next_page.title }}</span>
+ </a>
+ {% endif %}
+ {% if siblings.prev_page %}
+ <a href="{{ siblings.prev_page | url }}" rel="next">
+ <small>Next post →</small>
+ <span>{{ siblings.prev_page.title }}</span>
+ </a>
+ {% endif %}
+ </nav>
+ {% endif %}
+{% endblock %}