blog/_includes/views/paginator.html

26 lines
655 B
HTML
Raw Normal View History

2019-09-11 06:19:34 +02:00
{% if include.paginator %}
{% assign paginator = include.paginator %}
{% endif %}
{% if paginator.posts.size > 0 %}
2020-07-12 11:39:23 +02:00
<div class="paginator">
<span class="previous">
2019-09-11 06:19:34 +02:00
{% if paginator.previous_page %}
2020-09-22 05:07:09 +02:00
<a href="{{ paginator.previous_page_path | relative_url }}">Prev</a>
2019-09-11 06:19:34 +02:00
{% else %}
2020-07-12 11:39:23 +02:00
<span>Prev</span>
2019-09-11 06:19:34 +02:00
{% endif %}
2020-07-12 11:39:23 +02:00
</span>
2019-09-11 06:19:34 +02:00
2020-07-12 11:39:23 +02:00
<span class="indicator"> {{ paginator.page }}/{{ paginator.total_pages }}</span>
2019-09-11 06:19:34 +02:00
2020-07-12 11:39:23 +02:00
<span class="next">
2019-09-11 06:19:34 +02:00
{% if paginator.next_page %}
2020-09-22 05:07:09 +02:00
<a href="{{ paginator.next_page_path | relative_url }}">Next</a>
2019-09-11 06:19:34 +02:00
{% else %}
2020-07-12 11:39:23 +02:00
<span>Next</span>
2019-09-11 06:19:34 +02:00
{% endif %}
2020-07-12 11:39:23 +02:00
</span>
2019-09-11 06:19:34 +02:00
</div>
{% endif %}