Files

6 lines
241 B
JSON

{{- $.Scratch.Add "index" slice -}}
{{- range .Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "url" .RelPermalink "content" .Plain "section" .Section "tags" .Params.tags) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}