planblog/layouts/partials/pagination.html

10 lines
319 B
HTML
Raw Normal View History

2015-07-08 07:42:24 +00:00
<nav class="pagination" role="navigation">
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}">&laquo; Newer Posts</a>
{{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">Older Posts &raquo;</a>
{{end}}
</nav>