peruna/layouts/partials/pagination.html

16 lines
450 B
HTML
Raw Permalink Normal View History

2018-04-03 09:51:11 +00:00
<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>