30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
|
|
{% if paginator.total_pages > 1 %}
|
||
|
|
{% capture index_page_name %}{{ site.pagination.indexpage }}.{{ site.pagination.extension }}{% endcapture %}
|
||
|
|
<ul class="pager">
|
||
|
|
{% if paginator.previous_page %}
|
||
|
|
<li class="first">
|
||
|
|
<a href="{{ paginator.first_page_path | absolute_url | remove_first: index_page_name }}" alt="Oldest Entries">«</a>
|
||
|
|
</li>
|
||
|
|
<li class="prev">
|
||
|
|
<a href="{{ paginator.previous_page_path | absolute_url | remove_first: index_page_name }}" alt="Older Entries">←</a>
|
||
|
|
</li>
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
{% if paginator.page_trail %}
|
||
|
|
{% for trail in paginator.page_trail %}
|
||
|
|
<li class="page{% if page.url == trail.path %} selected{% endif %}">
|
||
|
|
<a href="{{ trail.path | absolute_url | remove_first: index_page_name }}">{{ trail.num }}</a>
|
||
|
|
</li>
|
||
|
|
{% endfor %}
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
{% if paginator.next_page %}
|
||
|
|
<li class="next">
|
||
|
|
<a href="{{ paginator.next_page_path | absolute_url | remove_first: index_page_name }}" alt="Newer Entries">→</a>
|
||
|
|
</li>
|
||
|
|
<li class="last">
|
||
|
|
<a href="{{ paginator.last_page_path | absolute_url | remove_first: index_page_name }}" alt="Newest Entries">»</a>
|
||
|
|
</li>
|
||
|
|
{% endif %}
|
||
|
|
</ul>
|
||
|
|
{% endif %}
|