2022-06-21 13:50:51 +00:00
|
|
|
<div class="pagination">
|
|
|
|
<div class="pagination__buttons">
|
|
|
|
{{ if .Paginator.HasPrev }}
|
2022-11-13 21:45:10 +00:00
|
|
|
<a href="{{ .Paginator.Prev.URL }}" class="button previous">
|
|
|
|
<span class="button__icon">←</span>
|
|
|
|
<span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
|
|
|
|
</a>
|
2022-06-21 13:50:51 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .Paginator.HasNext }}
|
2022-11-13 21:45:10 +00:00
|
|
|
<a href="{{ .Paginator.Next.URL }}" class="button next">
|
|
|
|
<span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
|
|
|
|
<span class="button__icon">→</span>
|
|
|
|
</a>
|
2022-06-21 13:50:51 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|