mirror of https://github.com/jpanther/congo.git
14 lines
492 B
JSON
14 lines
492 B
JSON
{{- $index := slice -}}
|
|
{{- range .Site.RegularPages -}}
|
|
{{- $section := .Site.GetPage "section" .Section -}}
|
|
{{- $index = $index | append (dict
|
|
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
|
|
"title" (.Title | emojify | safeJS)
|
|
"section" ($section.Title | emojify | safeJS)
|
|
"summary" (.Summary | emojify | safeJS)
|
|
"content" (.Plain | emojify | safeJS)
|
|
"permalink" .RelPermalink
|
|
) -}}
|
|
{{- end -}}
|
|
{{- $index | jsonify -}}
|