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

github.com/zerostaticthemes/hugo-serif-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuba <kuba.serafinowski@gmail.com>2019-07-28 20:55:42 +0300
committerKuba <kuba.serafinowski@gmail.com>2019-07-31 23:09:20 +0300
commit310a0b75c720b5dd963121393b310bb9bf54cd02 (patch)
treebada8c976597a45979c84308cc1cdc7b6d34634f /layouts
parentee464457e321f95b9f1611817e1c0d6309cb68d2 (diff)
use htmlUnescape before truncating to avoid apostrophes being escaped
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/services/summary.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/services/summary.html b/layouts/services/summary.html
index eda5c9b..57d46ee 100755
--- a/layouts/services/summary.html
+++ b/layouts/services/summary.html
@@ -3,6 +3,6 @@
<h2 class="service-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <p>{{ .Content | plainify | truncate 120 "…" }}</p>
+ <p>{{ .Content | plainify | htmlUnescape | truncate 120 "…" }}</p>
</div>
</div>