Skip to content

Commit

Permalink
fix: escaped HTML in summary.html
Browse files Browse the repository at this point in the history
due to last commit

fixed #213
  • Loading branch information
reuixiy committed Jul 1, 2020
1 parent 8ebbfa8 commit 47cead2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/utils/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- if .Truncated -}}
<!-- For the CJK language, add ellipsis. -->
{{- if .Params.isCJKLanguage -}}
{{- $summary = printf `%s%s` .Summary (i18n "ellipsis") -}}
{{- $summary = printf `%s%s` .Summary (i18n "ellipsis") | safeHTML -}}
<!-- For the other languages, no need. -->
<!-- Hugo’s automatic summary split method will split until end of sentence. -->
<!-- (Tested English Only) -->
Expand Down

0 comments on commit 47cead2

Please sign in to comment.