Move paige.hide_{rss,search} to paige.page

This commit is contained in:
Will Faught
2023-02-05 10:58:44 -08:00
parent bf96b9af84
commit 0b84ad2626
3 changed files with 6 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
{{- $page := . -}}
{{- $page.Scratch.Add "paige_index" slice -}}
{{- range where site.RegularPages "Params.paige.hide_search" "ne" true -}}
{{- range where site.RegularPages "Params.paige.page.search.hide" "ne" true -}}
{{- $page.Scratch.Add "paige_index" (dict
"categories" .Params.categories
"date" .PublishDate

View File

@@ -15,7 +15,7 @@
{{ $pages = $pages | first $limit }}
{{ end }}
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
{{ $pages = where $pages "Params.paige.page.rss.hide" "ne" true }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">