Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbnis <5955614+rbnis@users.noreply.github.com>2021-01-05 01:11:50 +0300
committerrbnis <5955614+rbnis@users.noreply.github.com>2021-01-05 01:11:50 +0300
commit0092be332e0507429c2646dfd8b76cb1e9afc834 (patch)
tree2c79d71b6c740fb022d9fe03b27c17810b90f432
parent2970469e337e1b834a59edeab32ede3a02f2883c (diff)
feat(i18n): Add post-list title
-rw-r--r--i18n/de.toml5
-rw-r--r--i18n/en.toml5
-rw-r--r--layouts/taxonomy/tag.html8
3 files changed, 12 insertions, 6 deletions
diff --git a/i18n/de.toml b/i18n/de.toml
index 56fa0af..9213bd0 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -2,4 +2,7 @@
other = "Vorheriger Beitrag"
[next_post]
-other = "Nächster Beitrag" \ No newline at end of file
+other = "Nächster Beitrag"
+
+[all_posts]
+other = "Alle Beitäge" \ No newline at end of file
diff --git a/i18n/en.toml b/i18n/en.toml
index 2e4708a..452a193 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -2,4 +2,7 @@
other = "Previous Post"
[next_post]
-other = "Next Post" \ No newline at end of file
+other = "Next Post"
+
+[all_posts]
+other = "All posts" \ No newline at end of file
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html
index 68aca13..b9795c9 100644
--- a/layouts/taxonomy/tag.html
+++ b/layouts/taxonomy/tag.html
@@ -2,12 +2,12 @@
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/tags.scss" "dest" "css/tags.css") }}
{{ end }}
-{{ define "main" }}
- {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
-
+{{ define "main" }}
+ {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
+
<div class="post-list__container">
<div class="tag__header">
- <a href="/blog">All posts</a><span class="separator">/</span>
+ <a href="/blog">{{ i18n "all_posts" }}</a><span class="separator">/</span>
<h1 class="tag__term">{{ .Title }}</h1>
</div>
<ul class="post-list">