blog/layouts/_default/index.json
2025-08-14 15:16:21 +01:00

9 lines
252 B
JSON

{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict
"title" .Title
"summary" .Summary
"url" .Permalink
"content" .Plain) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}