hugo-theme-minima/layouts/partials/paginator.html

13 lines
298 B
HTML
Raw Normal View History

2021-07-18 10:34:01 +02:00
{{ $page := $.Paginator }}
{{ if gt $page.TotalPages 1 }}
<div class="mt-6 flex justify-between font-semibold">
{{ if $page.HasPrev }}
2021-08-29 17:55:45 +02:00
<a href="{{ $page.Prev.URL }}">← Newer</a>
{{ end }}
2021-07-18 10:34:01 +02:00
{{ if $page.HasNext }}
2021-08-29 17:55:45 +02:00
<a href="{{ $page.Next.URL }}">Older →</a>
2021-07-18 10:34:01 +02:00
{{ end }}
</div>
{{ end }}