hugo-theme-hello-friend/layouts/partials/pagination.html

10 lines
380 B
HTML
Raw Permalink Normal View History

2018-07-20 19:14:22 +02:00
<div class="pagination">
<div class="pagination__buttons">
{{ if .Paginator.HasPrev }}
<a class="button next" href="{{ .Paginator.Prev.URL }}"><span class="button__icon"></span></a>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="button previous" href="{{ .Paginator.Next.URL }}"><span class="button__icon"></span></a>
{{ end }}
</div>
</div>