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/summary.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'layouts/post/summary.html') diff --git a/layouts/post/summary.html b/layouts/post/summary.html index 0695eac..6069ca1 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -1,4 +1,3 @@ -{{ $lang := .Site.Data.even.default -}}

{{ .Title }}

@@ -12,8 +11,8 @@ {{- end }} {{ if .Site.Params.moreMeta -}} - {{ printf $lang.posts.header.wordCount .WordCount }} - {{ printf $lang.posts.header.readingTime .ReadingTime }} + {{ T "wordCount" .WordCount }} + {{ T "readingTime" .ReadingTime }} {{- end }}
@@ -23,7 +22,7 @@ {{ .Summary }}
- {{ $lang.posts.readmore }} + {{ T "readMore" }}
-- cgit v1.2.3