Rename index scratch to paige_index
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{{- $page := . -}}
|
{{- $page := . -}}
|
||||||
|
|
||||||
{{- $page.Scratch.Add "index" slice -}}
|
{{- $page.Scratch.Add "paige_index" slice -}}
|
||||||
{{- range where $page.Site.RegularPages "Params.paige.hide_search" "ne" true -}}
|
{{- range where $page.Site.RegularPages "Params.paige.hide_search" "ne" true -}}
|
||||||
{{- $page.Scratch.Add "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)
|
||||||
@@ -12,4 +12,4 @@
|
|||||||
"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 "index" | jsonify -}}
|
{{- $page.Scratch.Get "paige_index" | jsonify -}}
|
||||||
|
Reference in New Issue
Block a user