Search only regular pages
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user