{{- $.Scratch.Add "index" slice -}} {{- range where .Site.Pages "Params.paigeexcludesearch" "ne" true -}} {{- $title := .Title | markdownify | plainify | htmlUnescape -}} {{- if and (not $title) .IsHome }} {{- $title = site.Title }} {{- end -}} {{- $.Scratch.Add "index" (dict "title" $title "description" (.Description | markdownify | plainify | htmlUnescape) "date" .PublishDate "categories" .Params.categories "tags" .Params.tags "keywords" .Params.keywords "text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) "link" .RelPermalink) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}}