diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/term/term.gmi | 6 | ||||
-rw-r--r-- | layouts/term/term.html | 6 |
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 }} 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 }} {{ i18n "atomFeed" }}</a></p> + <h2>{{ i18n "journalEntries" }}</h2> {{- range .Data.Pages.ByPublishDate.Reverse }} {{ partial "metadata.html" . -}} {{- end -}} |