hugo-themes/vugo/layouts/partials/pagination.html
2024-02-10 20:50:19 +01:00

8 lines
354 B
HTML

<div class="pagination__buttons">
{{ if .Paginator.HasPrev }}
<a class="button prev" href="{{ .Paginator.Prev.URL }}"> {{ $.Site.Params.newerPosts | default "Newer posts" }} </a>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="button next" href="{{ .Paginator.Next.URL }}"> {{ $.Site.Params.olderPosts | default "Older posts" }} </a>
{{ end }}
</div>