mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-13 02:16:19 +01:00
fix: search index content htmlEscape
This commit is contained in:
parent
a869ce295a
commit
2ccba79cba
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
{{- $one = delimit $tags "\n" | dict "tags" | merge $one -}}
|
||||
{{- $publish_date := .PublishDate.Format (.Site.Params.dateFormat | default "2006-01-02") -}}
|
||||
{{- $one = dict "date" $publish_date | merge $one -}}
|
||||
{{- $content := .RawContent -}}
|
||||
{{- $content := .RawContent | htmlEscape -}}
|
||||
{{- if gt .Site.Params.search.contentLength 0 -}}
|
||||
{{- $content = substr $content 0 .Site.Params.search.contentLength -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue