From be38f8fb7725828bc5c21906b6c0a72bd8403af46eb36f4c78278afe229d8434 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Mon, 31 Jul 2023 00:00:00 +0000 Subject: Add multilingual support for homepage link --- layouts/term/term.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/term/term.gmi') 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 }}" -- cgit v1.2.3