Merge pull request #508 from schnerring/flexsearch-description
Add .Summary as fallback for description
This commit is contained in:
@ -103,7 +103,11 @@ Source:
|
||||
id: {{ $index }},
|
||||
href: "{{ .RelPermalink }}",
|
||||
title: {{ .Title | jsonify }},
|
||||
description: {{ .Params.description | jsonify }},
|
||||
{{ with .Description -}}
|
||||
description: {{ . | jsonify }},
|
||||
{{ else -}}
|
||||
description: {{ .Summary | plainify | jsonify }},
|
||||
{{ end -}}
|
||||
content: {{ .Content | jsonify }}
|
||||
})
|
||||
{{ if ne (add $index 1) $len -}}
|
||||
|
Reference in New Issue
Block a user