17 lines
607 B
HTML
17 lines
607 B
HTML
|
<div class="pagination">
|
||
|
<div class="pagination__buttons">
|
||
|
{{ if .Paginator.HasPrev }}
|
||
|
<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>
|
||
|
{{ end }}
|
||
|
{{ if .Paginator.HasNext }}
|
||
|
<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>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|