From a0edcb023a49460636a32b7140891c39f0da5a99 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 15 Dec 2022 22:24:43 -0800 Subject: [PATCH] Search only regular pages --- layouts/_default/home.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/_default/home.json b/layouts/_default/home.json index db04bf68..7ddb76d5 100644 --- a/layouts/_default/home.json +++ b/layouts/_default/home.json @@ -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