planblog/layouts/partials/pagination.html
2015-07-12 20:10:40 -07:00

13 lines
368 B
HTML

<nav class="pagination" role="navigation">
{{ if or .HasPrev .HasNext }}
<hr />
{{ end }}
{{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>