Fix pager styling

This commit is contained in:
Oliver Davies 2017-12-10 23:43:40 +00:00
parent ff05c587cd
commit c4b06c4bc9

View file

@ -33,16 +33,16 @@ use: [posts]
</ul> </ul>
{% if page.pagination.previous_page or page.pagination.next_page %} {% if page.pagination.previous_page or page.pagination.next_page %}
<ul class="pager"> <ul class="list-reset flex">
{% if page.pagination.previous_page %} {% if page.pagination.next_page %}
<li class="next"> <li class="w-1/2">
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer →</a> <a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older posts</a>
</li> </li>
{% endif %} {% endif %}
{% if page.pagination.next_page %} {% if page.pagination.previous_page %}
<li class="previous"> <li class="w-1/2 text-right">
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older</a> <a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer posts →</a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>