Zebra/themes/casper/layouts/partials/pagination.html

10 lines
326 B
HTML
Raw Permalink Normal View History

2020-08-05 17:22:00 +02:00
<nav class="pagination" role="navigation">
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}">&larr; Newer Posts</a>
{{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">Older Posts &rarr;</a>
{{end}}
</nav>