aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-02-25 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-02-25 00:00:00 +0000
commit8dffa37f8ac556ed834feb78d8d659592808fe342f2078eaeea6c256d2ad0529 (patch)
tree42df5ab87619598efc2273e3838082026fe5fbf6ccdc7254a4d1eb9be08f8d65 /layouts
parent18768e9d5e08ec84b8af2289cb1b3c3aab04b4b2afb9456f4590357d0076780a (diff)
downloadhugo-theme-journal-8dffa37f8ac556ed834feb78d8d659592808fe342f2078eaeea6c256d2ad0529.tar.gz
hugo-theme-journal-8dffa37f8ac556ed834feb78d8d659592808fe342f2078eaeea6c256d2ad0529.zip
Make Gemini index page links consistent
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/taxonomy.gmi2
-rw-r--r--layouts/partials/metadata.gmi2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/taxonomy.gmi b/layouts/_default/taxonomy.gmi
index 04c3f73..56b53a9 100644
--- a/layouts/_default/taxonomy.gmi
+++ b/layouts/_default/taxonomy.gmi
@@ -8,6 +8,6 @@
## List
{{- range .Data.Pages }}
-=> {{ .RelPermalink }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
+=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
{{- end }}
{{- end }}
diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi
index 31b1155..5c137bf 100644
--- a/layouts/partials/metadata.gmi
+++ b/layouts/partials/metadata.gmi
@@ -1,2 +1,2 @@
{{- partial "pageinfo.gmi" . }}
-=> {{ .RelPermalink }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
+=> {{ .RelPermalink | replaceRE `(?m)index.gmi` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}