summaryrefslogtreecommitdiff
path: root/themes/archie/layouts/partials/paginator.html
blob: 5acc06d29ecfe7e680d66ca3d3bcb1132f88e224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<ul class="pagination">
	<span class="page-item page-prev">
	{{ if $pag.HasPrev }}
    <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
	{{ end }}
	</span>
	<span class="page-item page-next">
	{{ if $pag.HasNext }}
    <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
	{{ end }}
	</span>
</ul>
{{ end }}