diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.gmi | 4 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index d038c3d..850d57e 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,6 +1,6 @@ {{ define "main" }} {{ $emoji := cond (.Page.Params.showlinkemoji | default true) (emojify ":link: ") "" -}} -=> / {{ emojify ":link:" | safeHTML }} Return to homepage +=> {{ .Site.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" }} {{ if (.Page.Params.pageinfo | default true) }}{{ partial "pageinfo.gmi" . }} @@ -73,7 +73,7 @@ {{- if and (.Page.Params.makerefs | default true) $refs }} {{- $ref_index := 0 }} -## Links +## {{ i18n "links" }} {{- range $refs }} {{- $ref_index = add $ref_index 1 }} {{- $ref_text := index . 1 }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d0cc6a3..ec0ccbb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" -}} <nav> - <p>{{ emojify ":link:" | safeHTML }} <a class="link" href="/" rel="noreferrer">Return to homepage</a></p> + <p>{{ emojify ":link:" | safeHTML }} <a class="link" href="{{ .Site.Home.RelPermalink }}" rel="noreferrer">{{ i18n "returnHome" }}</a></p> </nav> {{- if (.Page.Params.pageinfo | default true) }} <p>{{ partial "pageinfo.html" . }}</p>{{ end }} |