summaryrefslogtreecommitdiff
path: root/layouts/term
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/term')
-rw-r--r--layouts/term/term.gmi2
-rw-r--r--layouts/term/term.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi
index d4c0d7d..e58960b 100644
--- a/layouts/term/term.gmi
+++ b/layouts/term/term.gmi
@@ -1,5 +1,5 @@
{{ define "main" -}}
-=> / {{ emojify ":link:" | safeHTML }} Return to homepage
+=> {{ .Site.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" }}
# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}"
diff --git a/layouts/term/term.html b/layouts/term/term.html
index 4b69ebe..93f537d 100644
--- a/layouts/term/term.html
+++ b/layouts/term/term.html
@@ -1,6 +1,6 @@
{{ define "main" -}}
<nav>
- <p>{{ emojify ":link:" | safeHTML }}&nbsp;<a class="link" href="/" rel="noreferrer">Return to homepage</a></p>
+ <p>{{ emojify ":link:" | safeHTML }}&nbsp;<a class="link" href="{{ .Site.Home.RelPermalink }}" rel="noreferrer">{{ i18n "returnHome" }}</a></p>
</nav>
<main>
<h1>{{ .Type | singularize | humanize }} "{{ .Title }}"</h1>