all repos — archie @ 2edf7ab84b855913c0c430453d3b9a31496b5cd0

A minimal Hugo Theme

layouts/partials/paginator.html (view raw)

 1{{ $pag := $.Paginator }}
 2{{ if gt $pag.TotalPages 1 }}
 3<ul class="pagination">
 4	<span class="page-item page-prev">
 5	{{ if $pag.HasPrev }}
 6    <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
 7	{{ end }}
 8	</span>
 9	<span class="page-item page-next">
10	{{ if $pag.HasNext }}
11    <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
12	{{ end }}
13	</span>
14</ul>
15{{ end }}