Rename excludesearch to paigeexcludesearch

This commit is contained in:
Will Faught
2022-12-14 18:06:00 -08:00
parent 1e9dd38da3
commit 0c821ff587
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ If you set either `paigehidethemecomment` or `paigehidethemelink`, please credit
Optional page parameters: Optional page parameters:
```yaml ```yaml
excludesearch: true # Don't include this page in search results paigeexcludesearch: true # Don't include this page in search results
link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title
math: true # Enable math typesetting with KaTeX math: true # Enable math typesetting with KaTeX
``` ```

View File

@@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range where .Site.Pages "Params.excludesearch" "ne" true -}} {{- range where .Site.Pages "Params.paigeexcludesearch" "ne" true -}}
{{- $title := .Title | markdownify | plainify | htmlUnescape -}} {{- $title := .Title | markdownify | plainify | htmlUnescape -}}
{{- if and (not $title) .IsHome }} {{- if and (not $title) .IsHome }}
{{- $title = site.Title }} {{- $title = site.Title }}