Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Baker <quentin@quentb.com>2021-10-12 21:49:21 +0300
committerQuentin Baker <quentin@quentb.com>2021-10-12 21:49:21 +0300
commitf5b19225a0b5f5a1b302acbf0d349a5880176112 (patch)
tree34d1f189d40ef17f6bc6d329978b6b87a48cddfd
parent89357fefec5b6dc4f5d102e22ff98240477f640a (diff)
use safeHTML on summary text
-rw-r--r--layouts/partials/post-summary.html4
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 }}&hellip;
+ {{ .Summary | safeHTML }}&hellip;
{{ end }}
</div>
{{ end }}