Fix navigation (pager) links in posts

This commit is contained in:
Gergely Polonkai 2016-06-28 13:13:56 +02:00
parent 1652d23322
commit 62ef651103
2 changed files with 3 additions and 2 deletions

View File

@ -6,5 +6,6 @@
<a href="{{tag | prepend: '/blog/tag/' | prepend: site.baseurl}}" class="tag-label">{{tag}}</a> <a href="{{tag | prepend: '/blog/tag/' | prepend: site.baseurl}}" class="tag-label">{{tag}}</a>
{% endfor %} {% endfor %}
</p> </p>
<br class="clearfix">
</footer> </footer>
{% endif %} {% endif %}

View File

@ -9,10 +9,10 @@ render_post: true
<nav> <nav>
<ul class="pager"> <ul class="pager">
{% if page.previous %} {% if page.previous %}
<li><a href="{{page.previous.url | prepend: site.baseurl}}">&larr; {{page.previous.title}}</a></li> <li class="previous"><a href="{{page.previous.url | prepend: site.baseurl}}">&larr; {{page.previous.title}}</a></li>
{% endif %} {% endif %}
{% if page.next %} {% if page.next %}
<li><a href="{{page.next.url | prepend: site.baseurl}}">{{page.next.title}} &rarr;</a></li> <li class="next"><a href="{{page.next.url | prepend: site.baseurl}}">{{page.next.title}} &rarr;</a></li>
{% endif %} {% endif %}
</ul> </ul>
</nav> </nav>