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 }}
|
|
|
|
<a class="pagination-previous" href="{{ $paginator.Prev.URL }}">Previous Page</a>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $paginator.HasNext }}
|
|
|
|
<a class="pagination-next" href="{{ $paginator.Next.URL }}">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>
|
|
|
|
<a class="pagination-link" aria-label="Goto page {{ .PageNumber}}" href="{{ .URL }}">{{ .PageNumber }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|