master
Will Faught 2 years ago
parent 252c829deb
commit 27e858a58b

@ -1,15 +1,17 @@
{{- $page := . -}} {{- $page := . -}}
{{- $page.Scratch.Add "paige_index" slice -}} {{- $page.Scratch.Add "paige_index" slice -}}
{{- range where site.RegularPages "Params.paige.search.hide_page" "ne" true -}} {{- range where site.RegularPages "Params.paige.search.hide_page" "ne" true -}}
{{- $page.Scratch.Add "paige_index" (dict {{- $page.Scratch.Add "paige_index" (dict
"categories" .Params.categories "categories" .Params.categories
"date" .PublishDate "date" .PublishDate
"description" (.Description | markdownify | plainify | htmlUnescape) "description" (.Description | markdownify | plainify | htmlUnescape)
"keywords" .Params.keywords "keywords" .Params.keywords
"link" .RelPermalink "link" .RelPermalink
"tags" .Params.tags "tags" .Params.tags
"text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) "text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " "))
"title" (.Title | markdownify | plainify | htmlUnescape)) -}} "title" (.Title | markdownify | plainify | htmlUnescape)) -}}
{{- end -}} {{- end -}}
{{- $page.Scratch.Get "paige_index" | jsonify -}} {{- $page.Scratch.Get "paige_index" | jsonify -}}

Loading…
Cancel
Save