1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-27 12:20:05 +01:00
blog/_src/_includes/paginator.html

47 lines
1.5 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-05-31 21:56:40 +02:00
rel="prev"><i class="icon icon-arrow-left"></i> Previous
</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-05-31 21:56:40 +02:00
rel="next">Next <i class="icon icon-arrow-right"></i>
</a>
{% endif %}
</p>
</nav>
2015-05-31 21:56:40 +02:00
{% endif %}