aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n/en.toml12
-rw-r--r--layouts/partials/pageinfo.html2
-rw-r--r--layouts/taxonomy/taxonomy.gmi6
-rw-r--r--layouts/taxonomy/taxonomy.html6
4 files changed, 19 insertions, 7 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index 454d56d..e1511d7 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -4,3 +4,15 @@
[returnHome]
other = "Return to homepage"
+
+[list]
+ other = "List"
+
+[feeds]
+ other = "Feeds"
+
+[atomFeed]
+ other = "Atom Feed"
+
+[tags]
+ other = "Tags"
diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html
index 42d2e90..ef64ef1 100644
--- a/layouts/partials/pageinfo.html
+++ b/layouts/partials/pageinfo.html
@@ -1,2 +1,2 @@
{{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}}
-{{ emojify ":calendar:" | safeHTML }}&nbsp;{{ .Page.PublishDate | time.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }}&nbsp;{{ i18n "readingTime" .ReadingTime | safeHTML }}{{ if .Page.Params.Tags }} | {{ emojify ":label:" | safeHTML }}&nbsp;{{ end }}{{ range $key, $val := .Page.Params.Tags }}{{ if $key }}, {{ end }}<a class="link" href='{{ "/tags/" }}{{ . | urlize }}' rel="noreferrer">{{ $val }}</a>{{ end }}
+{{ emojify ":calendar:" | safeHTML }}&nbsp;{{ .Page.PublishDate | time.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }}&nbsp;{{ i18n "readingTime" .ReadingTime | safeHTML }}{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }}&nbsp;{{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}' rel="noreferrer">{{ $val }}</a>{{ end }}
diff --git a/layouts/taxonomy/taxonomy.gmi b/layouts/taxonomy/taxonomy.gmi
index 99fb8f9..ecca4d8 100644
--- a/layouts/taxonomy/taxonomy.gmi
+++ b/layouts/taxonomy/taxonomy.gmi
@@ -3,10 +3,10 @@
# {{ .Type | humanize }}
-## 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" }}
-## List
+## {{ i18n "list" }}
{{- range .Data.Pages }}
=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
{{- end }}
diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html
index 45d64da..f1b5460 100644
--- a/layouts/taxonomy/taxonomy.html
+++ b/layouts/taxonomy/taxonomy.html
@@ -4,9 +4,9 @@
</nav>
<main>
<h1>{{ .Type | humanize }}</h1>
- <h2>Feeds</h2>
- <p><a class="link" href="{{ print .RelPermalink "atom.xml" }}" rel="noreferrer"> {{ emojify ":link:" | safeHTML }}&nbsp;Atom Feed</a></p>
- <h2>List</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 "list" }}</h2>
<ul class="list">
{{- range .Data.Pages }}
<li class="list__item">{{ emojify ":link:" }}&nbsp;<a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></li>