You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
641 B
JSON
18 lines
641 B
JSON
{{- $.Scratch.Add "index" slice -}}
|
|
{{- range where .Site.Pages "Params.excludesearch" "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 -}}
|