diff --git a/README.md b/README.md index 7d423497..9b103a8e 100644 --- a/README.md +++ b/README.md @@ -242,8 +242,9 @@ paige: Additional optional single page parameters: ```yaml -paige_hide_rss: true # Don't include this page in RSS feeds -paige_hide_search: true # Don't include this page in search results +paige: + hide_rss: true # Don't include this page in RSS feeds + hide_search: true # Don't include this page in search results ``` Example `config.yaml`: diff --git a/layouts/_default/home.json b/layouts/_default/home.json index 947a8412..8f83efbc 100644 --- a/layouts/_default/home.json +++ b/layouts/_default/home.json @@ -1,5 +1,5 @@ {{- $.Scratch.Add "index" slice -}} -{{- range where .Site.RegularPages "Params.paige_hide_search" "ne" true -}} +{{- range where .Site.RegularPages "Params.paige.hide_search" "ne" true -}} {{- $.Scratch.Add "index" (dict "categories" .Params.categories "date" .PublishDate diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 696c05d9..f3956105 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -12,7 +12,7 @@ {{ if ge $limit 1 }} {{ $pages = $pages | first $limit }} {{ end }} -{{ $pages = where $pages "Params.paige_hide_rss" "ne" true }} +{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }} {{ $title := partial "paige-titles.html" . }} {{ printf "" | safeHTML }}