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

13 lines
336 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 }}
2022-11-08 16:53:16 +01:00
<a href="{{ $page.Prev.URL }}">← {{ T "paginator.prev" }}</a>
{{ end }}
2021-07-18 10:34:01 +02:00
{{ if $page.HasNext }}
2022-11-08 16:53:16 +01:00
<a href="{{ $page.Next.URL }}">{{ T "paginator.next" }} →</a>
2021-07-18 10:34:01 +02:00
{{ end }}
</div>
{{ end }}