congo/layouts/_default/index.json

15 lines
589 B
JSON
Raw Normal View History

2022-02-03 00:46:21 +00:00
{{- $index := slice -}}
{{- range .Site.Pages -}}
{{- $section := .Site.GetPage "section" .Section -}}
{{- $showDate := .Params.showDate | default .Site.Params.article.showDate -}}
{{- $index = $index | append (dict
"date" (cond (and .IsPage $showDate) (.Date | time.Format (site.Params.dateFormat | default ":date_long")) nil)
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | emojify | safeJS)
"content" (.Plain | emojify | safeJS)
"permalink" .RelPermalink
) -}}
2022-01-13 04:56:30 +00:00
{{- end -}}
2022-02-03 00:46:21 +00:00
{{- $index | jsonify -}}