Move paige_hide_* params to paige object
This commit is contained in:
@@ -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`:
|
||||
|
@@ -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
|
||||
|
@@ -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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
Reference in New Issue
Block a user