From 30309d087037c957d14fca47d9e309c3618fabbb Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 12 Mar 2024 14:40:10 +0100 Subject: [PATCH] fix(head): prevent Go template from escaping HTML entities in meta description --- layouts/partials/head/head.html | 2 +- layouts/partials/head/opengraph/provider/base.html | 4 ++-- layouts/partials/head/opengraph/provider/twitter.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index c809636..3bb6d36 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -2,7 +2,7 @@ {{- $description := partialCached "data/description" . .RelPermalink -}} - + {{ with .Params.Keywords }}{{ end }} {{- $title := partial "data/title" . -}} diff --git a/layouts/partials/head/opengraph/provider/base.html b/layouts/partials/head/opengraph/provider/base.html index 3e51d37..3c72e4d 100644 --- a/layouts/partials/head/opengraph/provider/base.html +++ b/layouts/partials/head/opengraph/provider/base.html @@ -1,8 +1,8 @@ {{- $title := partialCached "data/title" . .RelPermalink -}} {{- $description := partialCached "data/description" . .RelPermalink -}} - - + +