2018-01-20 05:10:16 +01:00
|
|
|
{{ $paginator := .Paginator }}
|
2018-01-04 21:15:06 +01:00
|
|
|
|
2018-01-20 05:10:16 +01:00
|
|
|
<!-- If there's more than one page. -->
|
|
|
|
{{ if gt $paginator.TotalPages 1 }}
|
|
|
|
<div class="section">
|
|
|
|
<div class="container">
|
|
|
|
<nav class="pagination is-right" role="navigation" aria-label="pagination">
|
2018-01-04 21:15:06 +01:00
|
|
|
|
2018-01-20 05:10:16 +01:00
|
|
|
{{ if $paginator.HasPrev }}
|
2022-05-08 00:09:06 +02:00
|
|
|
<a class="pagination-previous" href="{{ $paginator.Prev.RelPermalink }}">Previous Page</a>
|
2018-01-20 05:10:16 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $paginator.HasNext }}
|
2022-05-08 00:09:06 +02:00
|
|
|
<a class="pagination-next" href="{{ $paginator.Next.RelPermalink }}">Next Page</a>
|
2018-01-04 21:15:06 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2018-01-20 05:10:16 +01:00
|
|
|
<ul class="pagination-list">
|
|
|
|
{{ range $paginator.Pagers }}
|
|
|
|
<li>
|
2022-05-08 00:09:06 +02:00
|
|
|
<a class="pagination-link" aria-label="Goto page {{ .PageNumber}}" href="{{ .RelPermalink }}">{{ .PageNumber }}</a>
|
2018-01-20 05:10:16 +01:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|