From 3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 30 Apr 2022 00:00:00 +0000 Subject: Use safeHTML for Gemini templates to prevent HTML escaping --- layouts/partials/metadata.gmi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/partials/metadata.gmi') diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 3984494..92036a1 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -2,10 +2,10 @@ {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read -=> .{{ .RelPermalink }} {{ .Title }} +=> .{{ .RelPermalink }} {{ .Title | safeHTML }} {{ end }} {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read -=> .{{ .RelPermalink }} {{ .Title }}{{ end }} +=> .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }} -- cgit v1.2.3