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

10 lines
340 B
HTML
Raw Permalink Normal View History

2023-11-01 19:37:20 -04:00
<div class="join">
2023-02-20 22:37:42 -05:00
{{ if .Paginator.HasPrev }}
2023-11-01 19:37:20 -04:00
<a class="join-item btn" href="{{ .Paginator.Prev.URL }}">Previous Page</a>
2023-02-20 22:37:42 -05:00
{{ end }}
2023-11-01 19:37:20 -04:00
<a class="join-item btn">{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</a>
2023-02-20 22:37:42 -05:00
{{ if .Paginator.HasNext }}
2023-11-01 19:37:20 -04:00
<a class="join-item btn" href="{{ .Paginator.Next.URL }}">Next Page</a>
2023-02-20 22:37:42 -05:00
{{ end }}
</div>