|
|
@ -1,7 +1,11 @@
|
|
|
|
{{- $.Scratch.Add "index" slice -}}
|
|
|
|
{{- $.Scratch.Add "index" slice -}}
|
|
|
|
{{- range where .Site.Pages "Params.excludesearch" "ne" true -}}
|
|
|
|
{{- 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
|
|
|
|
{{- $.Scratch.Add "index" (dict
|
|
|
|
"title" (.Title | markdownify | plainify | htmlUnescape)
|
|
|
|
"title" $title
|
|
|
|
"description" (.Description | markdownify | plainify | htmlUnescape)
|
|
|
|
"description" (.Description | markdownify | plainify | htmlUnescape)
|
|
|
|
"date" .PublishDate
|
|
|
|
"date" .PublishDate
|
|
|
|
"categories" .Params.categories
|
|
|
|
"categories" .Params.categories
|
|
|
|