hugo-theme-minima/layouts/partials/paginator.html
2021-08-29 23:55:45 +08:00

12 lines
284 B
HTML

{{ $page := $.Paginator }}
{{ if gt $page.TotalPages 1 }}
<div class="my-5 flex justify-between">
{{ if $page.HasPrev }}
<a href="{{ $page.Prev.URL }}">← Newer</a>
{{ end }}
{{ if $page.HasNext }}
<a href="{{ $page.Next.URL }}">Older →</a>
{{ end }}
</div>
{{ end }}