Skip to content

Commit

Permalink
Fix a offline search issue that escaped HTML entities is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed May 23, 2020
1 parent 053672c commit 88311ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/json/offline-search-index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $.Scratch.Add "offline-search-index" slice -}}
{{- range where .Site.AllPages ".Params.exclude_search" "!=" true -}}
{{- $.Scratch.Add "offline-search-index" (dict "title" .Title "ref" .RelPermalink "body" .Plain "excerpt" (.Summary | truncate 100)) -}}
{{- $.Scratch.Add "offline-search-index" (dict "title" (.Title | htmlUnescape) "ref" .RelPermalink "body" (.Plain | htmlUnescape) "excerpt" (.Summary | htmlUnescape | truncate 100)) -}}
{{- end -}}
{{- $.Scratch.Get "offline-search-index" | jsonify -}}

0 comments on commit 88311ff

Please sign in to comment.