Rename paige.search.disable to paige.exclude_search

master
Will Faught 5 months ago
parent 46e3c31da2
commit 56225eabc8

@ -178,6 +178,7 @@ credit = '<a class="link-secondary text-decoration-none" href="https://github.co
date_format = ":date_long" # Hugo date format date_format = ":date_long" # Hugo date format
description = "" # Site description. Appears above the menu, below the site title, if set. description = "" # Site description. Appears above the menu, below the site title, if set.
edit = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s". edit = "" # File edit URL. Example: "https://github.com/account/project/edit/master/content/%s".
exclude_search = false # Exclude the page from search
external_link_new_tab = false # Open external links in new tabs external_link_new_tab = false # Open external links in new tabs
history = "" # File history URL. Example: "https://github.com/account/project/commits/master/content/%s". history = "" # File history URL. Example: "https://github.com/account/project/commits/master/content/%s".
keyword_style = "text" # Must be "text" or "pills" keyword_style = "text" # Must be "text" or "pills"
@ -305,9 +306,6 @@ disable_title = false
# name = "Acme" # name = "Acme"
# url = "https://example.com" # url = "https://example.com"
schemas = [] schemas = []
[paige.search]
disable = false # Exclude the page from search
``` ```
The parameter object is accessed in site parameters as `[params.paige]`, and in page parameters as `[paige]`. The parameter object is accessed in site parameters as `[params.paige]`, and in page parameters as `[paige]`.

@ -2,7 +2,7 @@
{{- $page.Scratch.Add "paige_index" slice -}} {{- $page.Scratch.Add "paige_index" slice -}}
{{- range where $page.RegularPagesRecursive.ByPublishDate.Reverse "Params.paige.search.disable" "ne" true -}} {{- range where $page.RegularPagesRecursive.ByPublishDate.Reverse "Params.paige.exclude_search" "ne" true -}}
{{- $page.Scratch.Add "paige_index" (dict {{- $page.Scratch.Add "paige_index" (dict
"categories" .Params.categories "categories" .Params.categories
"date" .PublishDate "date" .PublishDate

Loading…
Cancel
Save