From b716c54a9dc21d49e066b9e6007eee56df3b343b Mon Sep 17 00:00:00 2001 From: Varun A P Date: Sat, 19 Jun 2021 08:51:16 +0200 Subject: Multipage sections --- layouts/_default/section.html | 72 +++++++++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 12 ++++++-- layouts/partials/header.html | 4 ++- 3 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 layouts/_default/section.html diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..8a5f090 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,72 @@ +{{ define "main" }} + +
+
+ {{- partial "custom-message.html" . -}} + +
+ {{ $pages := where .Paginator.Pages "Kind" "page" }} + + {{ $paginator := .Paginate (where $pages ".Params.exclude" "!=" "true") .Site.Params.paginate }} + + + + {{ if gt $paginator.TotalPages 1 }} + + {{ end }} +
+ +
+
+ +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6d8475a..39d8c7f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -84,6 +84,12 @@