mirror of https://github.com/jpanther/congo.git
7 lines
389 B
JSON
7 lines
389 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 "section" $section.Title "summary" .Summary "content" (.Plain | safeJS) "permalink" .RelPermalink) -}}
|
|
{{- end -}}
|
|
{{- $index | jsonify -}}
|