Search only regular pages

master
Will Faught 3 years ago
parent cef96b4602
commit a0edcb023a

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

Loading…
Cancel
Save