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/taxonomy/taxonomy.gmi | 2 +- layouts/taxonomy/taxonomy.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/taxonomy') 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" -}}

{{ .Type | humanize }}

-- cgit v1.2.3