peruna/layouts/partials/pagination.html

16 lines
450 B
HTML

<nav class="c-pagination p-pagination">
<div class="c-pagination__ctrl">
<div class="c-pagination__newer">
{{if .HasPrev}}
<a href="{{ .Prev.URL }}">Newer</a>
{{end}}
</div>
<div class="c-pagination__older">
{{if .HasNext}}
<a href="{{ .Next.URL }}">Older</a>
{{end}}
</div>
</div>
<span class="c-pagination__count p-pagination__count">Page {{ .PageNumber }} of {{.TotalPages}}</span>
</nav>