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>
{% if page.pagination.previous_page or page.pagination.next_page %}
<ul class="pager">
{% if page.pagination.previous_page %}
<li class="next">
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer →</a>
<ul class="list-reset flex">
{% if page.pagination.next_page %}
<li class="w-1/2">
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older posts</a>
</li>
{% endif %}
{% if page.pagination.next_page %}
<li class="previous">
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older</a>
{% if page.pagination.previous_page %}
<li class="w-1/2 text-right">
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer posts →</a>
</li>
{% endif %}
</ul>