HermitCollective.nix/sites/blog.hermitcollective.net/blog/themes/hugo-simple/layouts/partials/pagination.html

19 lines
378 B
HTML

<div class="pagination">
<a
{{ if .Paginator.HasPrev }}
href="{{ .Paginator.Prev.URL }}"
{{ else }}
style="visibility: hidden;"
{{ end }}
>
<span></span>
<span>Newer posts</span>
</a>
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}">
<span>Older posts</span>
<span></span>
</a>
{{ end }}
</div>