From 2dd3f86c80b69841c779cf130ca51405c0ccf3a9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 9 Feb 2023 21:28:42 -0800 Subject: [PATCH] Add paige.list.pages.hide param --- README.md | 2 ++ layouts/partials/paige/pages.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5f51f3f..6f88667c 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,8 @@ paige: description: class: "mb-0 text-center" # Default is "mb-0 text-center" hide: false # Default is false + pages: + hide: false # Default is false reading_time: class: "mb-0 text-center text-secondary" # Default is "mb-0 text-center text-secondary" hide: false # Default is false diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 76cfb456..98f0b212 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -1,6 +1,6 @@ {{ $page := . }} -{{ if $page.Pages }} +{{ if and $page.Pages ($page.Param "paige.list.pages.hide" | not) }} {{ if $page.Param "paige.list.content.show" }} {{ $p := $page.Paginate $page.Pages }}