aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n/en.toml3
-rw-r--r--layouts/term/term.gmi6
-rw-r--r--layouts/term/term.html6
3 files changed, 9 insertions, 6 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index e1511d7..7768b49 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -16,3 +16,6 @@
[tags]
other = "Tags"
+
+[journalEntries]
+ other = "Journal Entries"
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 -}}