aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:07:50 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:07:50 +0800
commit259d3dec1ae78e617b76ebeecd357218702d3d30 (patch)
tree088cb3abe91cba52395518ba1f080c7fdab5f85d /layouts/index.html
parentbe7b6c63a4fb89144e52659a145d09ddb03ba29a (diff)
refactor: i18n
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1a16497..616afdb 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -8,16 +8,15 @@
</section>
<!-- pagination -->
<nav class="pagination">
- {{- $lang := .Site.Data.even.default -}}
{{ with $paginator.Prev }}
<a class="prev" href="{{ .URL }}">
<i class="iconfont icon-left"></i>
- <span class="prev-text">{{ $lang.posts.prev }}</span>
+ <span class="prev-text">{{ T "prevPage" }}</span>
</a>
{{- end }}
{{ with $paginator.Next }}
<a class="next" href="{{ .URL }}">
- <span class="next-text">{{ $lang.posts.next }}</span>
+ <span class="next-text">{{ T "nextPage" }}</span>
<i class="iconfont icon-right"></i>
</a>
{{- end }}