Prev / Next links added to the translation files + Italian translation added (#46)

* Italian translation added

* Prev/Next links added to the translation files + Italian translation added

* Italian translation updated

* Use T instead of i18n for consistency

Co-authored-by: Carson Ip <carsonip@users.noreply.github.com>
This commit is contained in:
Francesco Maida
2020-04-21 15:26:59 +02:00
committed by GitHub
parent 58e5c7dbb6
commit a812f37396
3 changed files with 23 additions and 3 deletions

View File

@@ -6,3 +6,9 @@ other = "Comments"
[ReadMore]
other = "Read More"
[Prev]
other = "Prev"
[Next]
other = "Next"

14
i18n/it.toml Normal file
View File

@@ -0,0 +1,14 @@
[Contents]
other = "Indice"
[Comments]
other = "Commenti"
[ReadMore]
other = "Continua a leggere"
[Prev]
other = "Precedente"
[Next]
other = "Successivo"

View File

@@ -2,7 +2,7 @@
{{ if gt $pag.TotalPages 1 }}
<nav id="page-nav">
{{ if $pag.HasPrev }}
<a href="{{ $pag.Prev.URL }}" rel="prev" class="extend prev">&laquo; Prev</a>
<a href="{{ $pag.Prev.URL }}" rel="prev" class="extend prev">&laquo; {{ T "Prev" }}</a>
{{ end }}
{{ range $pag.Pagers }}
{{ if eq . $pag }}
@@ -13,7 +13,7 @@
{{ end }}
{{ if $pag.HasNext }}
<a href="{{ $pag.Next.URL }}" rel="next" class="extend next">Next &raquo;</a>
<a href="{{ $pag.Next.URL }}" rel="next" class="extend next">{{ T "Next" }} &raquo;</a>
{{ end }}
</nav>
{{ end }}
{{ end }}