planblog/layouts/partials/pagination.html
2015-07-17 20:49:53 +09:00

13 lines
428 B
HTML

<nav class="pagination" role="navigation">
{{ if or .HasPrev .HasNext }}
<hr />
{{ end }}
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}"><span aria-hidden="true">&laquo;</span> Newer Posts</a>
{{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">Older Posts <span aria-hidden="true">&raquo;</span></a>
{{end}}
</nav>