diff options
author | Quentin Baker <quentin@quentb.com> | 2021-10-12 21:49:21 +0300 |
---|---|---|
committer | Quentin Baker <quentin@quentb.com> | 2021-10-12 21:49:21 +0300 |
commit | f5b19225a0b5f5a1b302acbf0d349a5880176112 (patch) | |
tree | 34d1f189d40ef17f6bc6d329978b6b87a48cddfd | |
parent | 89357fefec5b6dc4f5d102e22ff98240477f640a (diff) |
use safeHTML on summary text
-rw-r--r-- | layouts/partials/post-summary.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/post-summary.html b/layouts/partials/post-summary.html index 1098719..12dd4c9 100644 --- a/layouts/partials/post-summary.html +++ b/layouts/partials/post-summary.html @@ -7,9 +7,9 @@ {{ if not .Site.Params.disableSummary }} <div class="content post-summary p-summary"> {{ if isset .Params "description" }} - {{ .Description }} + {{ .Description | safeHTML }} {{ else }} - {{ .Summary }}… + {{ .Summary | safeHTML }}… {{ end }} </div> {{ end }} |