summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-09-07 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-09-07 00:00:00 +0000
commitaf8a3a0f5dc102e5ad1c275638925258d5cc785b01176a1d126b4a85c5e31206 (patch)
tree1273e45721c2d1de50503315859093490a3308913e9fa28688adef1ae08ad1e0
parenta2b556704e5af545885583bc289422f28802ef042d8faab0c0fccfeac8fa28dd (diff)
downloadhugo-theme-journal-af8a3a0f5dc102e5ad1c275638925258d5cc785b01176a1d126b4a85c5e31206.tar.gz
hugo-theme-journal-af8a3a0f5dc102e5ad1c275638925258d5cc785b01176a1d126b4a85c5e31206.zip
Simplify URL in single.gmi
-rw-r--r--TODO1
-rw-r--r--layouts/_default/single.gmi2
2 files changed, 1 insertions, 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 }}