Add previous/next navigation to posts

This commit is contained in:
2016-01-30 23:03:15 +00:00
parent 9c52683d99
commit 239c9e066c
2 changed files with 14 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ layout: default
<p>{{ content }}</p>
<a href="/{{ site.baseurl }}/gallery/{{ page.gallery }}/">[ list ]</a>
</section>
<ul style="margin-top:0;">
<ul style="margin-top: 0;">
{% if photo.previous %}
<li><a href="/{{ site.baseurl }}/gallery/{{ page.gallery }}/{{ photo.previous }}.html" rel="prev">&nbsp;&larr;&nbsp;</a></li>
{% else %}