12 lines
284 B
HTML
12 lines
284 B
HTML
{{ $page := $.Paginator }}
|
|
{{ if gt $page.TotalPages 1 }}
|
|
<div class="my-8 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 }}
|