diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-07-31 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-07-31 00:00:00 +0000 |
commit | be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434 (patch) | |
tree | ca724ae46e366c50fbfabf89bc8d2731079815a308cdc644575ee27ca9e6b2d2 /layouts/term/term.gmi | |
parent | 96701f5f94a30f72bb6f3834f0445ce16f899a7e83eed4c74ffd0cc360d4db4e (diff) | |
download | hugo-theme-journal-be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434.tar.gz hugo-theme-journal-be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434.zip |
Add multilingual support for homepage link
Diffstat (limited to 'layouts/term/term.gmi')
-rw-r--r-- | layouts/term/term.gmi | 2 |
1 files changed, 1 insertions, 1 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 }}" |