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