fix(search): HTML escape issue

This commit is contained in:
Jimmy Cai
2020-09-26 22:50:23 +02:00
parent 08102e2f69
commit 6e48765d82
2 changed files with 38 additions and 9 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
{{- $result := slice -}}
{{- range $filtered -}}
{{- $data := dict "title" .Title "date" .Date "permalink" .Permalink "content" (htmlUnescape .Plain) -}}
{{- $data := dict "title" .Title "date" .Date "permalink" .Permalink "content" (.Plain) -}}
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
{{- if and $image.exists $image.resource -}}