From 259d3dec1ae78e617b76ebeecd357218702d3d30 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Wed, 31 Jan 2018 22:07:50 +0800 Subject: refactor: i18n --- layouts/post/single.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'layouts/post/single.html') diff --git a/layouts/post/single.html b/layouts/post/single.html index 58434b6..e157a81 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,5 +1,4 @@ {{ define "content" -}} - {{ $lang := .Site.Data.even.default -}}
@@ -15,12 +14,12 @@ {{- end }} {{ if .Site.Params.moreMeta -}} - {{ printf $lang.posts.header.wordCount .WordCount }} - {{ printf $lang.posts.header.readingTime .ReadingTime }} + {{ T "wordCount" .WordCount }} + {{ T "readingTime" .ReadingTime }} {{- end }} {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.pagePV -}} {{ $valueSpan := printf `spinner.svg` ("img/spinner.svg" | relURL) -}} - {{ printf $lang.traffic.pagePV $valueSpan | safeHTML }} + {{ printf (T "pagePV") $valueSpan | safeHTML }} {{- end }}
@@ -54,13 +53,13 @@ {{- end }} {{ with .PrevInSection }} {{- end }} -- cgit v1.2.3