Adds prev/next link below post, fixes #218

This commit is contained in:
Frederic Hemberger 2011-10-16 14:27:21 +02:00
parent d84daa2a88
commit 2812bf7c3e
2 changed files with 11 additions and 1 deletions

View File

@ -73,7 +73,9 @@ article {
@extend .sans; @extend .sans;
p.meta { p.meta {
margin-bottom: .8em; margin-bottom: .8em;
font-size: .85em; font-size: .85em
clear: both;
overflow: hidden;
} }
.byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before { .byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
@extend .separator; @extend .separator;

View File

@ -15,6 +15,14 @@ single: true
{% unless page.sharing == false %} {% unless page.sharing == false %}
{% include post/sharing.html %} {% include post/sharing.html %}
{% endunless %} {% endunless %}
<p class="meta">
{% if page.previous.url %}
<a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{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}} &raquo;</a>
{% endif %}
</p>
</footer> </footer>
</article> </article>
{% if site.disqus_short_name and page.comments == true %} {% if site.disqus_short_name and page.comments == true %}