sync theme

This commit is contained in:
Christoph Cullmann 2024-07-15 22:27:55 +02:00
parent 69075c6fb1
commit 3be5285488
No known key found for this signature in database
856 changed files with 236 additions and 1388275 deletions

View file

@ -5,7 +5,8 @@
{{ end }}
{{- range $pages -}}
{{- $section := .Site.GetPage "section" .Section -}}
{{- $index = $index | append (dict
{{- if .Date -}}
{{- $index = $index | append (dict
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
@ -14,6 +15,17 @@
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
"type" .Type
) -}}
) -}}
{{- else -}}
{{- $index = $index | append (dict
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
"type" .Type
) -}}
{{- end -}}
{{- end -}}
{{- $index | jsonify -}}