2022-02-03 00:46:21 +00:00
|
|
|
{{- $index := slice -}}
|
2022-06-25 00:44:35 +00:00
|
|
|
{{- range .Site.Pages -}}
|
2022-02-07 22:00:35 +00:00
|
|
|
{{- $section := .Site.GetPage "section" .Section -}}
|
2023-03-24 12:49:09 +00:00
|
|
|
{{- $showDate := .Params.showDate | default .Site.Params.article.showDate -}}
|
2022-02-07 22:00:35 +00:00
|
|
|
{{- $index = $index | append (dict
|
2023-03-24 12:49:09 +00:00
|
|
|
"date" (cond (and .IsPage $showDate) (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long")) nil)
|
2022-02-07 22:00:35 +00:00
|
|
|
"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 -}}
|