index.json (341B)
1 {{- $.Scratch.Add "index" slice -}} 2 {{- range site.RegularPages -}} 3 {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} 4 {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} 5 {{- end }} 6 {{- end -}} 7 {{- $.Scratch.Get "index" | jsonify -}}