summaryrefslogtreecommitdiffstats
path: root/blog/_layouts
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-09-23 18:46:02 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-09-23 18:46:02 +0200
commit78211e36114ab31e92b570279a89e6d77ca64331 (patch)
tree11e59b766a0a09aae6bfaa090e66d38f0f0d8707 /blog/_layouts
parentf847d407b8f2da4e235cea42b8af1b3dcf8ac667 (diff)
downloadnorsk-urskog-main-78211e36114ab31e92b570279a89e6d77ca64331.tar.gz
norsk-urskog-main-78211e36114ab31e92b570279a89e6d77ca64331.tar.bz2
norsk-urskog-main-78211e36114ab31e92b570279a89e6d77ca64331.zip
Add links to previous and next posts in post template.
Diffstat (limited to 'blog/_layouts')
-rw-r--r--blog/_layouts/post.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/blog/_layouts/post.html b/blog/_layouts/post.html
index 1fb1857..17d4979 100644
--- a/blog/_layouts/post.html
+++ b/blog/_layouts/post.html
@@ -7,4 +7,12 @@ layout: default
<section class="post-body">
{{ content }}
</section>
+ <footer>
+ {% if page.previous %}
+ <div class="prev-post"><a href="{{ page.previous.url }}">{{ page.previous.title }}</a></div>
+ {% endif %}
+ {% if page.next %}
+ <div class="next-post"><a href="{{ page.next.url }}">{{ page.next.title }}</a></div>
+ {% endif %}
+ </footer>
</article>