all repos — archie @ ac7b05d2a110b10adac9cf20bd1030f7bd303cfd

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 }}