diff options
author | breadcat | 2020-06-19 15:45:16 +0100 |
---|---|---|
committer | breadcat | 2020-06-19 15:45:16 +0100 |
commit | 17bb3b3688912b4a1ef9e918895eb53488f85bea (patch) | |
tree | a353fc2ab1be67b84527eac30a7b1cf78c45a891 /themes/Brine/layouts/partials | |
parent | 02950f010e162f062945e7e63b7a16e6b01b0475 (diff) | |
download | blog.minskio.co.uk-17bb3b3688912b4a1ef9e918895eb53488f85bea.tar.gz blog.minskio.co.uk-17bb3b3688912b4a1ef9e918895eb53488f85bea.tar.bz2 blog.minskio.co.uk-17bb3b3688912b4a1ef9e918895eb53488f85bea.zip |
Base theme commit
Thats' enough for today
Diffstat (limited to 'themes/Brine/layouts/partials')
-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 |