From 901a710c500f6a5a93f0866849714c58c448b84aed40160c9f53cdde71774f1f Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Tue, 1 Aug 2023 00:00:00 +0000 Subject: Add multilingual support for sections --- layouts/term/term.gmi | 6 +++--- layouts/term/term.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/term') 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 @@

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

-

Feeds

-

{{ emojify ":link:" | safeHTML }} Atom Feed

-

Journal Entries

+

{{ i18n "feeds" }}

+

{{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}

+

{{ i18n "journalEntries" }}

{{- range .Data.Pages.ByPublishDate.Reverse }} {{ partial "metadata.html" . -}} {{- end -}} -- cgit v1.2.3