diff options
author | Francesco Maida <francesco.maida@gmail.com> | 2020-04-18 23:18:57 +0300 |
---|---|---|
committer | Francesco Maida <francesco.maida@gmail.com> | 2020-04-18 23:18:57 +0300 |
commit | 5529fcddd5220da548279cb41ed9e504098f56eb (patch) | |
tree | 7c9bb9d537a24869fd46ae8d67fed8d062e7c4f0 | |
parent | e9193c9bc9be27cf468e8893f283a05779ad57e5 (diff) |
multi-language support through i18n
-rw-r--r-- | i18n/en.toml | 6 | ||||
-rw-r--r-- | i18n/it.toml | 6 | ||||
-rw-r--r-- | layouts/_default/taxonomy.html | 6 | ||||
-rw-r--r-- | layouts/index.html | 2 |
4 files changed, 16 insertions, 4 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index d2721a6..efe0c53 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -10,6 +10,12 @@ other = "Newer" [older] other = "Older" +[tagged] +other = "Tagged" + +[read_more] +other = "Read more..." + [noteworthy_theme] other = "Noteworthy theme" diff --git a/i18n/it.toml b/i18n/it.toml index 81f2cb5..6f51495 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -10,6 +10,12 @@ other = "Successivi" [older] other = "Precedenti" +[tagged] +other = "Contrassegnato" + +[read_more] +other = "Continua a leggere..." + [noteworthy_theme] other = "Tema Noteworthy" diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index c86d136..5a35378 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,6 +1,6 @@ {{ define "main" }} <!-- Page that displays after clicking on a post's tag --> - <h1>Tagged "{{ .Data.Term }}"</h1> + <h1>{{ i18n "tagged" }} "{{ .Data.Term }}"</h1> {{range .Pages}} <!-- Display the posts with the tag --> @@ -13,7 +13,7 @@ <div> <p>{{ .Summary }}</p> {{ if (and (.Site.Params.showReadMore) (.Truncated)) }} - <p><a href="{{ .RelPermalink }}">Read more...</a></p> + <p><a href="{{ .RelPermalink }}">{{ i18n "read_more" }}</a></p> {{ end }} </div> <div class="post-footer"> @@ -22,4 +22,4 @@ </article> {{ end }} -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 91806f7..aa3292a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,7 +17,7 @@ <div> <p>{{ .Summary }}</p> {{ if (and (.Site.Params.showReadMore) (.Truncated)) }} - <p><a href="{{ .RelPermalink }}">Read more...</a></p> + <p><a href="{{ .RelPermalink }}">{{ i18n "read_more" }}</a></p> {{ end }} </div> <div class="post-footer"> |