diff options
| author | vimux <vimux@protonmail.com> | 2016-10-14 23:41:10 +0300 |
|---|---|---|
| committer | vimux <vimux@protonmail.com> | 2016-10-14 23:41:10 +0300 |
| commit | 406c5961cbce9b9defde833e3c68c73a0a05536e (patch) | |
| tree | fd21f7fb40fdb52dce0295ae2eae794e569c4bd6 /layouts/partials/pagination.html | |
Initial commit
Diffstat (limited to 'layouts/partials/pagination.html')
| -rw-r--r-- | layouts/partials/pagination.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..892afec --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,9 @@ +<div> +{{ if .Paginator.HasPrev }} + <a href="{{ .Paginator.Prev.URL }}">Previous Page</a> +{{ end }} +{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} +{{ if .Paginator.HasNext }} + <a href="{{ .Paginator.Next.URL }}">Next Page</a> +{{ end }} +</div>
\ No newline at end of file |