logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault
commit: eca9893df510b5fc5f9dbb9130f76040b0a938af
parent 401995a4d5018499a5e12a74fb0f77aa8aceab80
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 23 Oct 2020 17:15:13 -0400

Fix title rendering for Gemtext

Diffstat:

Mlayouts/blog/single.gmi6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi @@ -1,4 +1,4 @@ -# {{$.Title}} +# {{$.Title | safeHTML}} {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} @@ -8,10 +8,10 @@ /_/ ``` -“{{$.Title}}” was published on {{.Date.Format "January 2, 2006"}}. +“{{$.Title | safeHTML}}” was published on {{.Date.Format "January 2, 2006"}}. => / Back to the home page{{ with .OutputFormats.Get "html" }} -=> {{.Permalink}} View “{{$.Title}}” on the WWW +=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW {{- end }} The content for this site is CC-BY-SA. The code for this site is MIT.