Format dict vertically
parent
ca6ab7634b
commit
a655724370
@ -1,5 +1,13 @@
|
|||||||
{{- $.Scratch.Add "index" slice -}}
|
{{- $.Scratch.Add "index" slice -}}
|
||||||
{{- range where .Site.RegularPages "Params.excludesearch" "ne" true -}}
|
{{- range where .Site.RegularPages "Params.excludesearch" "ne" true -}}
|
||||||
{{- $.Scratch.Add "index" (dict "title" (.Title | markdownify | plainify | htmlUnescape) "description" (.Description | markdownify | plainify | htmlUnescape) "date" .PublishDate "categories" .Params.categories "tags" .Params.tags "keywords" .Params.keywords "text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) "link" .RelPermalink) -}}
|
{{- $.Scratch.Add "index" (dict
|
||||||
|
"title" (.Title | markdownify | plainify | htmlUnescape)
|
||||||
|
"description" (.Description | markdownify | plainify | htmlUnescape)
|
||||||
|
"date" .PublishDate
|
||||||
|
"categories" .Params.categories
|
||||||
|
"tags" .Params.tags
|
||||||
|
"keywords" .Params.keywords
|
||||||
|
"text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " "))
|
||||||
|
"link" .RelPermalink) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $.Scratch.Get "index" | jsonify -}}
|
{{- $.Scratch.Get "index" | jsonify -}}
|
||||||
|
Loading…
Reference in New Issue