add more fields to .ejsl index data
This commit is contained in:
parent
2452be516b
commit
044fb506ce
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
||||||
{{- range .Site.RegularPages -}}
|
{{- range .Site.RegularPages -}}
|
||||||
{{- $s := (dict "title" .Title "content" .Plain "link" .Permalink) -}}
|
{{- $s := (dict "title" .Title "content" .Plain "url" .RelPermalink
|
||||||
|
"date" .Date "author" .Params.Author
|
||||||
|
"domains" .Params.Domains "topics" .Params.Topics
|
||||||
|
"doctypes" .Params.Doctypes "summary" .Summary
|
||||||
|
"pageid" .Params.Pageid "parents" .Params.Parents
|
||||||
|
"draft" .Draft "weight" .Weight
|
||||||
|
"site" (or .Site.Params.SiteId .Site.Title)) -}}
|
||||||
{{- replace (jsonify (dict "noHTMLEscape" true) $s) "\\" "\\\\" }}
|
{{- replace (jsonify (dict "noHTMLEscape" true) $s) "\\" "\\\\" }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue