datat.fi/_includes/posts-paginated.html

16 lines
754 B
HTML
Raw Permalink Normal View History

2017-03-07 23:12:17 +02:00
{% for post in paginator.posts %}
{% include entry.html %}
{% endfor %}
<!-- Pagination links -->
<nav class="pager">
<ul>
<!-- Page: {{ paginator.page }} of {{ paginator.total_pages }} -->
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous"><span class="icon icon--arrow-right">{% include icon-arrow-left.svg %}</span> {{ site.data.theme.t.newer | default: 'Newer' }}</a></li>
2017-03-07 23:12:17 +02:00
{% endif %}
{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next">{{ site.data.theme.t.older | default: 'Older' }} <span class="icon icon--arrow-right">{% include icon-arrow-right.svg %}</span></a></li>
2017-03-07 23:12:17 +02:00
{% endif %}
</ul>
</nav>