Skip to content

Commit

Permalink
hide archives and search page from being searched
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Jan 30, 2021
1 parent 0c28a4a commit c7b3883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $.Scratch.Add "index" slice -}}
{{- 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) -}}
{{- end }}
{{- end -}}
Expand Down

0 comments on commit c7b3883

Please sign in to comment.