1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-30 16:08:10 +01:00
blog/_src/_includes/paginator.html

54 lines
1.8 KiB
HTML
Raw Normal View History

{% if paginator.total_pages > 1 %}
<nav class="row paginator">
2015-05-31 21:56:40 +02:00
<p class="paginator-previous col2">
{% if paginator.previous_page %}
<a
{% if page.category %}
{% if paginator.previous_page == 1 %}
2015-05-31 21:56:40 +02:00
href="/{{ page.category }}/"
{% else %}
2015-05-31 21:56:40 +02:00
href="/{{ page.category }}/page/{{ paginator.previous_page }}/"
{% endif %}
{% else %}
{% if paginator.previous_page == 1 %}
2015-05-31 21:56:40 +02:00
href="/"
{% else %}
2015-05-31 21:56:40 +02:00
href="/page/{{ paginator.previous_page }}/"
{% endif %}
{% endif %}
2015-06-08 21:22:09 +02:00
rel="prev">
<svg class="icon icon-entypo icon-entypo-chevron-left">
<use xlink:href="/assets/img/sprite.svg#entypo-chevron-left"></use>
</svg>
Previous
2015-05-31 21:56:40 +02:00
</a>
{% endif %}
</p>
<p class="col2 pagenumber textcenter">
2015-05-31 21:56:40 +02:00
<span class="paginator-number ">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
2013-11-24 17:31:03 +01:00
</p>
2015-05-31 21:56:40 +02:00
<p class="paginator-next col2">
{% if paginator.next_page %}
<a
{% if page.category %}
2015-05-31 21:56:40 +02:00
href="/{{ page.category }}/page/{{ paginator.next_page }}/"
{% else %}
2015-05-31 21:56:40 +02:00
href="/page/{{ paginator.next_page }}/"
{% endif %}
2015-06-08 21:22:09 +02:00
rel="next">Next
<svg class="icon icon-entypo icon-entypo-chevron-right">
<use xlink:href="/assets/img/sprite.svg#entypo-chevron-right"></use>
</svg>
2015-05-31 21:56:40 +02:00
</a>
{% endif %}
</p>
</nav>
2015-05-31 21:56:40 +02:00
{% endif %}