mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
menu: remove disabled sections from search index #642
This commit is contained in:
parent
583f94e4b9
commit
660fd1c8d4
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
||||||
{{- $pages := slice }}
|
{{- $pages := slice }}
|
||||||
{{- range .Site.Pages }}
|
{{- range .Site.Pages }}
|
||||||
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
||||||
{{- $title := .Title }}
|
{{- $title := .Title }}
|
||||||
{{- if eq .Kind "taxonomy" }}
|
{{- if eq .Kind "taxonomy" }}
|
||||||
{{- $title = i18n .Data.Plural }}
|
{{- $title = i18n .Data.Plural }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
||||||
{{- $pages := slice }}
|
{{- $pages := slice }}
|
||||||
{{- range .Site.Pages }}
|
{{- range .Site.Pages }}
|
||||||
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
||||||
{{- $title := .Title }}
|
{{- $title := .Title }}
|
||||||
{{- if eq .Kind "taxonomy" }}
|
{{- if eq .Kind "taxonomy" }}
|
||||||
{{- $title = i18n .Data.Plural }}
|
{{- $title = i18n .Data.Plural }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue