1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-23 18:32:49 +01:00
blog/_src/_includes/paginator.html

53 lines
1.8 KiB
HTML
Raw Normal View History

{% if paginator.total_pages > 1 %}
2015-08-09 21:50:06 +02:00
<nav class="paginator grid">
2015-05-31 21:56:40 +02:00
2015-08-18 22:45:30 +02:00
<p class="paginator-previous grid__col">
2015-05-31 21:56:40 +02:00
{% 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>
2015-08-18 22:45:30 +02:00
<p class="paginator-pages grid__col">
2015-06-22 21:28:31 +02:00
<span class="paginator-number">{{ paginator.page }}</span> of <span class="paginator-number">{{ paginator.total_pages }}</span>
2013-11-24 17:31:03 +01:00
</p>
2015-05-31 21:56:40 +02:00
2015-08-18 22:45:30 +02:00
<p class="paginator-next grid__col">
2015-05-31 21:56:40 +02:00
{% 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 %}