{{- $.Scratch.Add "index" slice -}} | |
{{- range .Site.RegularPages -}} | |
{{- if not .Params.excludeSearch -}} | |
{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} | |
{{- end -}} | |
{{- end -}} | |
{{- $.Scratch.Get "index" | uniq | jsonify -}} |