aboutsummaryrefslogtreecommitdiff
path: root/layouts/taxonomy
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-07-31 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-07-31 00:00:00 +0000
commitbe38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434 (patch)
treeca724ae46e366c50fbfabf89bc8d2731079815a308cdc644575ee27ca9e6b2d2 /layouts/taxonomy
parent96701f5f94a30f72bb6f3834f0445ce16f899a7e83eed4c74ffd0cc360d4db4e (diff)
downloadhugo-theme-journal-be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434.tar.gz
hugo-theme-journal-be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434.zip
Add multilingual support for homepage link
Diffstat (limited to 'layouts/taxonomy')
-rw-r--r--layouts/taxonomy/taxonomy.gmi2
-rw-r--r--layouts/taxonomy/taxonomy.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/taxonomy/taxonomy.gmi b/layouts/taxonomy/taxonomy.gmi
index 56b53a9..99fb8f9 100644
--- a/layouts/taxonomy/taxonomy.gmi
+++ b/layouts/taxonomy/taxonomy.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 | humanize }}
diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html
index a3a22a7..45d64da 100644
--- a/layouts/taxonomy/taxonomy.html
+++ b/layouts/taxonomy/taxonomy.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 | humanize }}</h1>