fix: htmlUnescape page description (#71)

- add htmlUnescape
This commit is contained in:
Jinuk Im 2023-09-22 06:46:08 +09:00 committed by GitHub
parent c18d5def26
commit 929578192b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -}}