aboutsummaryrefslogtreecommitdiff
path: root/layouts/term
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-08-01 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-08-01 00:00:00 +0000
commit901a710c500f6a5a93f0866849714c58c448b84aed40160c9f53cdde71774f1f (patch)
tree01377807abcb65ff064962e4e7bdae32d45dae4e10c2a9c843b6369d2e04de4e /layouts/term
parente2c122bd5d738261a14e05648ee261f816b342b7909a9bfc873be8c8db3e1d98 (diff)
downloadhugo-theme-journal-901a710c500f6a5a93f0866849714c58c448b84aed40160c9f53cdde71774f1f.tar.gz
hugo-theme-journal-901a710c500f6a5a93f0866849714c58c448b84aed40160c9f53cdde71774f1f.zip
Add multilingual support for sections
Diffstat (limited to 'layouts/term')
-rw-r--r--layouts/term/term.gmi6
-rw-r--r--layouts/term/term.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi
index e58960b..fd8db55 100644
--- a/layouts/term/term.gmi
+++ b/layouts/term/term.gmi
@@ -3,10 +3,10 @@
# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}"
-## Feeds
-=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed
+## {{ i18n "feeds" }}
+=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}
-## Journal Entries
+## {{ i18n "journalEntries" }}
{{ $entriesMinusOne := sub (len .Data.Pages) 1 -}}
{{ range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . }}
diff --git a/layouts/term/term.html b/layouts/term/term.html
index 93f537d..4841673 100644
--- a/layouts/term/term.html
+++ b/layouts/term/term.html
@@ -4,9 +4,9 @@
</nav>
<main>
<h1>{{ .Type | singularize | humanize }} "{{ .Title }}"</h1>
- <h2>Feeds</h2>
- <p><a class="link" href="{{ print .RelPermalink "atom.xml" }}" rel="noreferrer"> {{ emojify ":link:" | safeHTML }}&nbsp;Atom Feed</a></p>
- <h2>Journal Entries</h2>
+ <h2>{{ i18n "feeds" }}</h2>
+ <p><a class="link" href="{{ print .RelPermalink "atom.xml" }}" rel="noreferrer"> {{ emojify ":link:" | safeHTML }}&nbsp;{{ i18n "atomFeed" }}</a></p>
+ <h2>{{ i18n "journalEntries" }}</h2>
{{- range .Data.Pages.ByPublishDate.Reverse }}
{{ partial "metadata.html" . -}}
{{- end -}}