From e8ce80b80dc1ebfc1db1e0cee7a7f7ac1e0e7e94961e456e5e60d1a15caeb7fe Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Thu, 7 Nov 2024 00:00:00 +0000 Subject: Disable HTML renderer for Gemini output format This avoids littering the gemtext templates with "safeHTML". --- layouts/partials/footer.gmi | 2 +- layouts/partials/header.gmi | 2 +- layouts/partials/metadata.gmi | 2 +- layouts/partials/pageinfo.gmi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi index 338e88e..06b0678 100644 --- a/layouts/partials/footer.gmi +++ b/layouts/partials/footer.gmi @@ -1 +1 @@ -{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }} \ No newline at end of file +{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") }} \ No newline at end of file diff --git a/layouts/partials/header.gmi b/layouts/partials/header.gmi index a7f87a9..c70f84a 100644 --- a/layouts/partials/header.gmi +++ b/layouts/partials/header.gmi @@ -1,3 +1,3 @@ ```plaintext -{{ chomp (readFile "templates/logo.txt") | safeHTML }} +{{ chomp (readFile "templates/logo.txt") }} ``` \ No newline at end of file diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index a4bf636..7ee4064 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,2 +1,2 @@ {{ partial "pageinfo.gmi" . }} -=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} \ No newline at end of file +=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" }} {{ .Title }} \ No newline at end of file diff --git a/layouts/partials/pageinfo.gmi b/layouts/partials/pageinfo.gmi index 951bdf4..0e2d051 100644 --- a/layouts/partials/pageinfo.gmi +++ b/layouts/partials/pageinfo.gmi @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}} -{{ emojify ":calendar:" | safeHTML }} {{ .Page.PublishDate | time.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }} {{ i18n "readingTime" .ReadingTime }}{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} \ No newline at end of file +{{ emojify ":calendar:" }} {{ .Page.PublishDate | time.Format $dateFormat }} | {{ emojify ":stopwatch:" }} {{ i18n "readingTime" .ReadingTime }}{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} \ No newline at end of file -- cgit v1.2.3