{{- $.Scratch.Add "index" slice -}} | |
{{- range where .Site.Pages ".Params.exclude_search" "!=" true -}} | |
{{- $.Scratch.Add "index" (dict "title" .Title "ref" .Permalink "body" .Plain "excerpt" (.Summary | truncate 100)) -}} | |
{{- end -}} | |
{{- $.Scratch.Get "index" | jsonify -}} |