fix(head): prevent Go template from escaping HTML entities in meta description (#973)

This commit is contained in:
Jimmy Cai
2024-03-12 14:45:59 +01:00
committed by GitHub
parent 04bf1956b9
commit 0b9f6c36ad
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<meta name='viewport' content='width=device-width, initial-scale=1'>
{{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name='description' content='{{ $description }}'>
<meta name='description' {{ printf "content=%q" $description | safeHTMLAttr }}>
{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}
{{- $title := partial "data/title" . -}}