From f797661650869f7639b6c60ef9a0703e0f3c3769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 15 Jul 2018 14:14:06 +0200 Subject: including pagination --- layouts/partials/pagination.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 layouts/partials/pagination.html (limited to 'layouts/partials/pagination.html') diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..16ad74e --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,15 @@ +{{ $pag := $.Paginator }} +{{ if gt $pag.TotalPages 1 }} +
+ {{ if $pag.HasPrev }} + Newer Posts + {{ end }} + + {{ range $pag.Pagers }} + {{ .PageNumber }} + {{ end }} +{{ if $pag.HasNext }} + Older posts +{{ end }} +
+{{ end }} -- cgit v1.2.3