From 929578192b4634a541373b91fe193a7f3db1cca5 Mon Sep 17 00:00:00 2001 From: Jinuk Im Date: Fri, 22 Sep 2023 06:46:08 +0900 Subject: [PATCH] fix: htmlUnescape page description (#71) - add htmlUnescape --- layouts/partials/utils/page-description.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/utils/page-description.html b/layouts/partials/utils/page-description.html index b587062..3f6e290 100644 --- a/layouts/partials/utils/page-description.html +++ b/layouts/partials/utils/page-description.html @@ -1,11 +1,11 @@ -{{ with .Description | plainify -}} +{{ with .Description | plainify | htmlUnescape -}} {{ . -}} {{ else -}} {{ if .IsHome -}} - {{ with .Site.Params.description | plainify -}} + {{ with .Site.Params.description | plainify | htmlUnescape -}} {{ . -}} {{ end -}} {{ else -}} - {{ .Summary | plainify | chomp -}} + {{ .Summary | plainify | htmlUnescape | chomp -}} {{ end -}} {{ end -}}