Use Bootstrap pager classes
This commit is contained in:
parent
1e8c3f817f
commit
0bf570bd5c
|
@ -28,14 +28,14 @@ use:
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% if page.pagination.previous_page or page.pagination.next_page %}
|
{% if page.pagination.previous_page or page.pagination.next_page %}
|
||||||
<nav>
|
<ul class="pager">
|
||||||
{% if page.pagination.previous_page %}
|
{% if page.pagination.previous_page %}
|
||||||
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
|
<li class="next"><a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer →</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.pagination.next_page %}
|
{% if page.pagination.next_page %}
|
||||||
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
|
<li class="previous"><a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Reference in a new issue