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/index.html | 2 +- layouts/partials/header.html | 2 +- layouts/partials/pagination.html | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/pagination.html diff --git a/layouts/index.html b/layouts/index.html index 5d3350c..64edb68 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,9 +3,9 @@ {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} - {{ partial "pagination.html" . }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} + {{ partial "pagination.html" . }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a3df9c6..2a64490 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -40,7 +40,7 @@