diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-16 14:27:21 +0200 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-16 14:27:21 +0200 |
commit | 2812bf7c3e4a0496e48767f2368633b31a373e5f (patch) | |
tree | bc5fd68765a4f2f25d7dc1dc4c2c1f30a3ee66d0 /.themes/classic/source/_layouts/post.html | |
parent | d84daa2a882e238edc40871d0fdd2f41ff9f51a8 (diff) | |
download | my_new_personal_website-2812bf7c3e4a0496e48767f2368633b31a373e5f.tar.xz my_new_personal_website-2812bf7c3e4a0496e48767f2368633b31a373e5f.zip |
Adds prev/next link below post, fixes #218
Diffstat (limited to '.themes/classic/source/_layouts/post.html')
-rw-r--r-- | .themes/classic/source/_layouts/post.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html index 3b1208da..f61d52a8 100644 --- a/.themes/classic/source/_layouts/post.html +++ b/.themes/classic/source/_layouts/post.html @@ -15,6 +15,14 @@ single: true {% unless page.sharing == false %} {% include post/sharing.html %} {% endunless %} + <p class="meta"> + {% if page.previous.url %} + <a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">« {{page.previous.title}}</a> + {% endif %} + {% if page.next.url %} + <a class="basic-alignment right" href="{{page.next.url}}" title="next Post: {{page.next.title}}">{{page.next.title}} »</a> + {% endif %} + </p> </footer> </article> {% if site.disqus_short_name and page.comments == true %} |