{{- $.Scratch.Add "index" slice -}} {{- range site.RegularPages -}} {{- if ne .Layout "search" -}} {{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "summary" .Summary "content" .Plain) -}} {{- end -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}}