From fa4da755d8c8938a1379dd63e9c550360ff118ed60e330b2088688f22e2fd7ac Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Mon, 1 Aug 2022 00:00:00 +0000 Subject: Don't HTML escape Gemini templates --- 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 92036a1..f5cca3b 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,11 +1,11 @@ {{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} {{- 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 +{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read => .{{ .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 +{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read => .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }} -- cgit v1.2.3