From 27e858a58ba024152e494d95f03c712295dd4450 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 24 Sep 2023 21:06:22 -0700 Subject: [PATCH] Format --- layouts/_default/home.json | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/layouts/_default/home.json b/layouts/_default/home.json index 8fcbca04..d9e6f4f9 100644 --- a/layouts/_default/home.json +++ b/layouts/_default/home.json @@ -1,15 +1,17 @@ {{- $page := . -}} {{- $page.Scratch.Add "paige_index" slice -}} + {{- range where site.RegularPages "Params.paige.search.hide_page" "ne" true -}} -{{- $page.Scratch.Add "paige_index" (dict - "categories" .Params.categories - "date" .PublishDate - "description" (.Description | markdownify | plainify | htmlUnescape) - "keywords" .Params.keywords - "link" .RelPermalink - "tags" .Params.tags - "text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) - "title" (.Title | markdownify | plainify | htmlUnescape)) -}} + {{- $page.Scratch.Add "paige_index" (dict + "categories" .Params.categories + "date" .PublishDate + "description" (.Description | markdownify | plainify | htmlUnescape) + "keywords" .Params.keywords + "link" .RelPermalink + "tags" .Params.tags + "text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) + "title" (.Title | markdownify | plainify | htmlUnescape)) -}} {{- end -}} + {{- $page.Scratch.Get "paige_index" | jsonify -}}