2020-09-26 11:40:33 +02:00
|
|
|
{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}}
|
2025-12-22 17:12:34 +01:00
|
|
|
{{- $filtered := where $pages "Params.hidden" "!=" true -}}
|
2022-10-29 17:14:19 +02:00
|
|
|
|
2020-09-26 11:40:33 +02:00
|
|
|
{{- $result := slice -}}
|
|
|
|
|
|
2022-10-29 17:14:19 +02:00
|
|
|
{{- range $filtered -}}
|
2026-01-25 22:31:58 +01:00
|
|
|
{{- $data := dict "title" .Title "date" .Date "permalink" .RelPermalink "content" (.Plain) -}}
|
2020-09-26 11:40:33 +02:00
|
|
|
|
2026-01-25 23:29:41 +01:00
|
|
|
{{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources) -}}
|
|
|
|
|
{{- if $image -}}
|
2026-01-25 23:44:47 +01:00
|
|
|
{{- $data = merge $data (dict "image" $image.Permalink) -}}
|
2020-12-25 09:39:04 +01:00
|
|
|
{{- end -}}
|
2020-09-26 11:40:33 +02:00
|
|
|
|
|
|
|
|
{{- $result = $result | append $data -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{ jsonify $result }}
|