vugo/layouts/partials/pagination.html

8 lines
354 B
HTML
Raw Permalink Normal View History

2022-08-23 23:41:20 +02:00
<div class="pagination__buttons">
2023-03-09 21:04:37 +01:00
{{ 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>