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

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Maida <francesco.maida@gmail.com>2020-04-21 16:26:59 +0300
committerGitHub <noreply@github.com>2020-04-21 16:26:59 +0300
commita812f373966878b1fc1f7b231eb3452a8705738f (patch)
tree62f550b3530ed2f9ea6806cce83657f5adc2c632
parent58e5c7dbb625c52b691e2eb488811088bb12fc72 (diff)
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>
-rw-r--r--i18n/en.toml6
-rw-r--r--i18n/it.toml14
-rw-r--r--layouts/partials/pagination.html6
3 files changed, 23 insertions, 3 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index b50793a..f890265 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -6,3 +6,9 @@ other = "Comments"
[ReadMore]
other = "Read More"
+
+[Prev]
+other = "Prev"
+
+[Next]
+other = "Next"
diff --git a/i18n/it.toml b/i18n/it.toml
new file mode 100644
index 0000000..d623ca9
--- /dev/null
+++ b/i18n/it.toml
@@ -0,0 +1,14 @@
+[Contents]
+other = "Indice"
+
+[Comments]
+other = "Commenti"
+
+[ReadMore]
+other = "Continua a leggere"
+
+[Prev]
+other = "Precedente"
+
+[Next]
+other = "Successivo"
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 1beaebe..481c47f 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -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 }} \ No newline at end of file
+{{ end }}