Move paige_hide_* params to paige object
This commit is contained in:
@@ -242,8 +242,9 @@ paige:
|
|||||||
Additional optional single page parameters:
|
Additional optional single page parameters:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
paige_hide_rss: true # Don't include this page in RSS feeds
|
paige:
|
||||||
paige_hide_search: true # Don't include this page in search results
|
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`:
|
Example `config.yaml`:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{- $.Scratch.Add "index" slice -}}
|
{{- $.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
|
{{- $.Scratch.Add "index" (dict
|
||||||
"categories" .Params.categories
|
"categories" .Params.categories
|
||||||
"date" .PublishDate
|
"date" .PublishDate
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
{{ if ge $limit 1 }}
|
{{ if ge $limit 1 }}
|
||||||
{{ $pages = $pages | first $limit }}
|
{{ $pages = $pages | first $limit }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $pages = where $pages "Params.paige_hide_rss" "ne" true }}
|
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
|
||||||
{{ $title := partial "paige-titles.html" . }}
|
{{ $title := partial "paige-titles.html" . }}
|
||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
Reference in New Issue
Block a user