From 6ac161965480952cb51e670d068b254c17aa62d5 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Feb 2023 15:21:47 -0800 Subject: [PATCH] Move paige.main.metadata.search.hide to paige.search.hide_page --- README.md | 4 ++-- layouts/_default/home.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 787e096d..119c9268 100644 --- a/README.md +++ b/README.md @@ -309,8 +309,6 @@ paige: reading_time: class: "text-center text-secondary" # Default is "text-center text-secondary" hide: false # Default is false - search: - hide: false # Don't include this page in search results; default is false section: class: "paige-metadata w-100" # Default is "paige-metadata w-100" terms: @@ -331,6 +329,8 @@ paige: hide_page: false # Default is false managing_editor: "Michael Bluth" # Default is "" web_master: "Michael Bluth" # Default is "" + search: + hide_page: false # Default is false social: examplesite: bootstrap_icon: example-icon diff --git a/layouts/_default/home.json b/layouts/_default/home.json index 04a19365..f40c52e9 100644 --- a/layouts/_default/home.json +++ b/layouts/_default/home.json @@ -1,7 +1,7 @@ {{- $page := . -}} {{- $page.Scratch.Add "paige_index" slice -}} -{{- range where site.RegularPages "Params.paige.main.metadata.search.hide" "ne" true -}} +{{- range where site.RegularPages "Params.paige.search.hide" "ne" true -}} {{- $page.Scratch.Add "paige_index" (dict "categories" .Params.categories "date" .PublishDate