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

13 lines
289 B
HTML
Raw Normal View History

2021-07-18 10:34:01 +02:00
{{ $page := $.Paginator }}
{{ if gt $page.TotalPages 1 }}
<div class="mt-2">
{{ if $page.HasPrev }}
<a href="{{ $page.Prev.URL }}" class="mr-2">← Newer</a>
{{ end }}
2021-07-18 10:34:01 +02:00
{{ if $page.HasNext }}
<a href="{{ $page.Next.URL }}" class="ml-2">Older →</a>
2021-07-18 10:34:01 +02:00
{{ end }}
</div>
{{ end }}