multi-language support through i18n

This commit is contained in:
Francesco Maida 2020-04-18 22:18:57 +02:00
parent e9193c9bc9
commit 5529fcddd5
4 changed files with 16 additions and 4 deletions

View File

@ -10,6 +10,12 @@ other = "Newer"
[older]
other = "Older"
[tagged]
other = "Tagged"
[read_more]
other = "Read more..."
[noteworthy_theme]
other = "Noteworthy theme"

View File

@ -10,6 +10,12 @@ other = "Successivi"
[older]
other = "Precedenti"
[tagged]
other = "Contrassegnato"
[read_more]
other = "Continua a leggere..."
[noteworthy_theme]
other = "Tema Noteworthy"

View File

@ -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">

View File

@ -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">