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

{{ .Type | singularize | humanize }} "{{ .Title }}"

-- cgit v1.2.3