diff options
author | rbnis <5955614+rbnis@users.noreply.github.com> | 2021-01-05 01:11:50 +0300 |
---|---|---|
committer | rbnis <5955614+rbnis@users.noreply.github.com> | 2021-01-05 01:11:50 +0300 |
commit | 0092be332e0507429c2646dfd8b76cb1e9afc834 (patch) | |
tree | 2c79d71b6c740fb022d9fe03b27c17810b90f432 | |
parent | 2970469e337e1b834a59edeab32ede3a02f2883c (diff) |
feat(i18n): Add post-list title
-rw-r--r-- | i18n/de.toml | 5 | ||||
-rw-r--r-- | i18n/en.toml | 5 | ||||
-rw-r--r-- | layouts/taxonomy/tag.html | 8 |
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"> |