26 lines
722 B
HTML
26 lines
722 B
HTML
<div class="pagination">
|
|
<div class="pagination_buttons">
|
|
{{ if .Paginator.HasPrev }}
|
|
<span class="button previous">
|
|
<a href="{{ .Paginator.Prev.URL }}">
|
|
<span class="previous button_icon">
|
|
<i class="fa fa-lg fa-arrow-left"></i>
|
|
</span>
|
|
<span class="button_text">Newer posts</span>
|
|
</a>
|
|
</span>
|
|
{{ end }}
|
|
{{ if .Paginator.HasNext }}
|
|
<span class="button next">
|
|
<a href="{{ .Paginator.Next.URL }}">
|
|
<span class="button_text">Older posts</span>
|
|
<span class="next button_icon">
|
|
<i class="fa fa-lg fa-arrow-right"></i>
|
|
</span>
|
|
</a>
|
|
</span>
|
|
{{ end }}
|
|
|
|
</div>
|
|
</div>
|