aboutsummaryrefslogtreecommitdiff
path: root/layouts/term/term.gmi
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/term/term.gmi')
-rw-r--r--layouts/term/term.gmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi
index d3c5a2a..b2c7bcb 100644
--- a/layouts/term/term.gmi
+++ b/layouts/term/term.gmi
@@ -1,5 +1,5 @@
{{ define "main" -}}
-=> {{ .Site.Home.RelPermalink | replaceRE `index.gmi$` "" }} {{ emojify ":link:" }} {{ i18n "returnHome" }}
+=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }}
# {{ .Type | singularize | humanize }} "{{ .Title }}"