6 lines
230 B
JSON

{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .RelPermalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}