summaryrefslogtreecommitdiff
path: root/_includes/pagination.liquid
blob: 51683d4311f6c13c9fc6250c97feb0d631068e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% if paginator.total_pages > 1 %}
    <div class="column">
	{% if paginator.previous_page %}
	    <a class="button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">
		<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left mr-2" viewBox="0 0 16 16">
		    <path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>
		</svg>
		Newer
	    </a>
	{% endif %}
    </div>
    <div class="column">
	{% if paginator.next_page %}
	    <a class="button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">
		Older
		<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right ml-2" viewBox="0 0 16 16">
		    <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>
		</svg>
	    </a>
	{% endif %}
    </div>
{% endif %}