mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-17 00:24:24 -04:00
hide archives and search page from being searched
This commit is contained in:
parent
0c28a4ad5a
commit
c7b388346b
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{{- $.Scratch.Add "index" slice -}}
|
{{- $.Scratch.Add "index" slice -}}
|
||||||
{{- range .Site.RegularPages -}}
|
{{- range .Site.RegularPages -}}
|
||||||
{{- if not .Params.searchHidden }}
|
{{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
|
||||||
{{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}}
|
{{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue