fix: htmlUnescape page description (#71)

- add htmlUnescape
This commit is contained in:
Jinuk Im
2023-09-21 22:46:08 +01:00
committed by GitHub
parent c18d5def26
commit 929578192b
+3 -3
View File
@@ -1,11 +1,11 @@
{{ with .Description | plainify -}} {{ with .Description | plainify | htmlUnescape -}}
{{ . -}} {{ . -}}
{{ else -}} {{ else -}}
{{ if .IsHome -}} {{ if .IsHome -}}
{{ with .Site.Params.description | plainify -}} {{ with .Site.Params.description | plainify | htmlUnescape -}}
{{ . -}} {{ . -}}
{{ end -}} {{ end -}}
{{ else -}} {{ else -}}
{{ .Summary | plainify | chomp -}} {{ .Summary | plainify | htmlUnescape | chomp -}}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}