{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
  {{- $.Scratch.Add "index" (dict
    "title" .Title
    "permalink" .Permalink
    "summary" .Summary
    "tags" .Params.tags
    "date" (.Date.Format "2006-01-02")
  ) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}