aboutsummaryrefslogtreecommitdiff
path: root/themes/flamingo/layouts/partials/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/flamingo/layouts/partials/pagination.html')
-rw-r--r--themes/flamingo/layouts/partials/pagination.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/flamingo/layouts/partials/pagination.html b/themes/flamingo/layouts/partials/pagination.html
new file mode 100644
index 0000000..79f8053
--- /dev/null
+++ b/themes/flamingo/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>