Rename paige.feeds.disable to paige.feeds.exclude
This commit is contained in:
@@ -281,7 +281,7 @@ repo = ""
|
|||||||
theme = ""
|
theme = ""
|
||||||
|
|
||||||
[paige.feeds]
|
[paige.feeds]
|
||||||
disable = false # Exclude the page from feeds
|
exclude = false # Exclude this page from feeds
|
||||||
link_to_page = false # Link to the page instead of the front matter link, if present
|
link_to_page = false # Link to the page instead of the front matter link, if present
|
||||||
page_link = "⏎" # If a front matter link is present, and link_to_page is false, then link to the page with this text
|
page_link = "⏎" # If a front matter link is present, and link_to_page is false, then link to the page with this text
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
{{ $updated := site.Lastmod.Format $format }}
|
{{ $updated := site.Lastmod.Format $format }}
|
||||||
|
|
||||||
{{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }}
|
{{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }}
|
||||||
{{ if not (.Param "paige.feeds.disable") }}
|
{{ if not (.Param "paige.feeds.exclude") }}
|
||||||
{{ $subpages = $subpages | append . }}
|
{{ $subpages = $subpages | append . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Lastmod.IsZero }}
|
{{ if .Lastmod.IsZero }}
|
||||||
{{ warnf "layouts/_default/list.atom.xml: Page %s does not have a modified date. The atom output requires a modified date. Either set the page's date parameter, or set the page's paige.feeds.disable parameter to true, or disable the atom output." .RelPermalink }}
|
{{ warnf "layouts/_default/list.atom.xml: Page %s does not have a modified date. The atom output requires a modified date. Either set the page's date parameter, or set the page's paige.feeds.exclude parameter to true, or disable the atom output." .RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with partial "paige/func-authors.html" . }}
|
{{ with partial "paige/func-authors.html" . }}
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
{{ $build = .Lastmod }}
|
{{ $build = .Lastmod }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not (.Param "paige.feeds.disable") }}
|
{{ if not (.Param "paige.feeds.exclude") }}
|
||||||
{{ $subpages = $subpages | append . }}
|
{{ $subpages = $subpages | append . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user