planblog/layouts/partials/pagination.html

12 lines
351 B
HTML
Raw Normal View History

2015-07-08 07:42:24 +00:00
<nav class="pagination" role="navigation">
{{ if or .HasPrev .HasNext }}
<hr />
{{ end }}
2015-07-08 07:42:24 +00:00
{{if .HasPrev}}
2015-07-11 07:26:14 +00:00
<a class="newer-posts" href="{{ .Prev.URL }}"><span aria-hidden="true">&laquo;</span> Newer Posts</a>
2015-07-08 07:42:24 +00:00
{{end}}
{{if .HasNext}}
2015-07-11 07:26:14 +00:00
<a class="older-posts" href="{{ .Next.URL }}">Older Posts <span aria-hidden="true">&raquo;</span></a>
2015-07-08 07:42:24 +00:00
{{end}}
</nav>