diff options
Diffstat (limited to 'themes/Brine/layouts/partials/pagination.html')
-rw-r--r-- | themes/Brine/layouts/partials/pagination.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/Brine/layouts/partials/pagination.html b/themes/Brine/layouts/partials/pagination.html new file mode 100644 index 0000000..7ed3bce --- /dev/null +++ b/themes/Brine/layouts/partials/pagination.html @@ -0,0 +1,6 @@ +{{ with $.Paginator }}{{ if gt .TotalPages 1 }} + <p class="pagination"> + {{ with .Prev }}<a class="page-link" href="{{ .URL }}">Previous</a></li> + {{ end }}{{ range .Pagers }}<a class="page-link{{ if eq .PageNumber $.Paginator.PageNumber }} a{{ end }}" href="{{ .URL }}">{{ .PageNumber }}</a> + {{ end }}{{ with .Next }}<a class="page-link" href="{{ .URL }}">Next</a>{{ end }} + </p>{{ end }}{{ end }}
\ No newline at end of file |