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

21 lines
677 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 }}
2019-01-06 11:23:25 +01:00
<span class="button previous">
<a href="{{ .Paginator.Prev.URL }}">
<span class="button__icon"></span>
<span class="button__text">{{ $.Site.Params.NewerPosts | default "Newer posts" }}</span>
2019-01-06 11:23:25 +01:00
</a>
</span>
2018-07-20 19:14:22 +02:00
{{ end }}
{{ if .Paginator.HasNext }}
2019-01-06 11:23:25 +01:00
<span class="button next">
<a href="{{ .Paginator.Next.URL }}">
<span class="button__text">{{ $.Site.Params.OlderPosts | default "Older posts" }}</span>
2019-01-06 11:23:25 +01:00
<span class="button__icon"></span>
</a>
</span>
2018-07-20 19:14:22 +02:00
{{ end }}
</div>
2019-01-06 11:23:25 +01:00
</div>