Search only regular pages

master
Will Faught 3 years ago
parent cef96b4602
commit a0edcb023a

@ -1,11 +1,7 @@
{{- $.Scratch.Add "index" slice -}}
{{- range where .Site.Pages "Params.paige_hide_search" "ne" true -}}
{{- $title := .Title | markdownify | plainify | htmlUnescape -}}
{{- if and (not $title) .IsHome }}
{{- $title = site.Title }}
{{- end -}}
{{- range where .Site.RegularPages "Params.paige_hide_search" "ne" true -}}
{{- $.Scratch.Add "index" (dict
"title" $title
"title" (.Title | markdownify | plainify | htmlUnescape)
"description" (.Description | markdownify | plainify | htmlUnescape)
"date" .PublishDate
"categories" .Params.categories

Loading…
Cancel
Save