From 0b9f6c36adf3ef6539a238e15a30cd1d8801bece Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 12 Mar 2024 14:45:59 +0100 Subject: [PATCH] fix(head): prevent Go template from escaping HTML entities in meta description (#973) --- 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 60da962..055745d 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 -}} - - + +