summaryrefslogtreecommitdiffstats
path: root/_build/themes/ninenines/layouts/partials/pagination.html
blob: 50c8c4ff5e195bf16ae5e84a4148b6c1e5836d7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav class="pagination" role="pagination">
  {{ if .Paginator.HasPrev }}
  <a href="{{ .Paginator.Prev.URL }}"><i class="fa fa-angle-double-left"></i></a>
  {{ end }}
  <span>{{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }}</span>
  {{ if .Paginator.HasNext }}
  <a href="{{ .Paginator.Next.URL }}"><i class="fa fa-angle-double-right"></i></a>
  {{ end }}
</nav>
{{ end }}