diff options
author | reuixiy <reuixiy@gmail.com> | 2020-07-01 03:05:53 +0300 |
---|---|---|
committer | reuixiy <reuixiy@gmail.com> | 2020-07-01 03:07:03 +0300 |
commit | 47cead29fe090c3a7ddb24d3e96826189a981d09 (patch) | |
tree | aab53cf2a53a4d531e5e1ccdf6cd0293f08fad1a | |
parent | 8ebbfa81a5a517038b24e20768b8db2dda812649 (diff) |
fix: escaped HTML in summary.html
due to last commit
fixed #213
-rw-r--r-- | layouts/partials/utils/summary.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/utils/summary.html b/layouts/partials/utils/summary.html index aec385b..a6921c3 100644 --- a/layouts/partials/utils/summary.html +++ b/layouts/partials/utils/summary.html @@ -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) --> |