diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-04-30 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-04-30 00:00:00 +0000 |
commit | 3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c (patch) | |
tree | 8a7cfddf9d5ab5a7d047e4609245efc1b1b9f42ae603ce58e9359c8651e68faf /layouts/partials | |
parent | 0f3c967d08cec7d9cc6e78f6f72c86726fc7d290bf3e5698b907d179f15aee6d (diff) | |
download | hugo-theme-journal-3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c.tar.gz hugo-theme-journal-3e570d9d8cce90b15c8f348b9f80f0accdf3446f1dab76077a0099d5494dc89c.zip |
Use safeHTML for Gemini templates to prevent HTML escaping
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/header.gmi | 2 | ||||
-rw-r--r-- | layouts/partials/metadata.gmi | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/header.gmi b/layouts/partials/header.gmi index e060cd0..acdb5eb 100644 --- a/layouts/partials/header.gmi +++ b/layouts/partials/header.gmi @@ -1,3 +1,3 @@ ```nicksphere logo -{{ $.Site.Params.logo }} +{{ $.Site.Params.logo | safeHTML }} ``` 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 }} |