hugo-theme-zirakzigil/layouts/partials/pagination.html

10 lines
340 B
HTML

<div class="join">
{{ if .Paginator.HasPrev }}
<a class="join-item btn" href="{{ .Paginator.Prev.URL }}">Previous Page</a>
{{ end }}
<a class="join-item btn">{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</a>
{{ if .Paginator.HasNext }}
<a class="join-item btn" href="{{ .Paginator.Next.URL }}">Next Page</a>
{{ end }}
</div>