2022-09-10 14:05:37 -05:00
|
|
|
{{- $index := slice -}}
|
2024-03-13 19:01:32 -05:00
|
|
|
{{ $pages := .Site.Pages }}
|
|
|
|
{{ range .Site.Home.Translations }}
|
|
|
|
{{ $pages = $pages | lang.Merge .Site.Pages }}
|
|
|
|
{{ end }}
|
|
|
|
{{- range $pages -}}
|
2022-09-10 14:05:37 -05:00
|
|
|
{{- $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)
|
2024-05-31 05:37:29 -05:00
|
|
|
"summary" (.Summary | safeJS)
|
|
|
|
"content" (.Plain | safeJS)
|
2022-09-10 14:05:37 -05:00
|
|
|
"permalink" .RelPermalink
|
2024-03-10 05:31:37 -05:00
|
|
|
"externalUrl" .Params.externalUrl
|
2024-03-13 19:01:32 -05:00
|
|
|
"type" .Type
|
2022-09-10 14:05:37 -05:00
|
|
|
) -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $index | jsonify -}}
|