From af8a3a0f5dc102e5ad1c275638925258d5cc785b01176a1d126b4a85c5e31206 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 7 Sep 2022 00:00:00 +0000 Subject: Simplify URL in single.gmi --- TODO | 1 - layouts/_default/single.gmi | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 6d58d23..054b23a 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ -- fix Gemini pages' relative URL handling - put date written and time to read somewhere in page - add tag support - fix "layouts/_default/single.gmi" changing preformatted text diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 3bfe6d0..5508559 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,6 +1,6 @@ {{ define "main" }} {{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" "🔗 " -}} -=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} 🔗 Return to homepage +=> / 🔗 Return to homepage # {{ .Name | safeHTML }} -- cgit v1.2.3