From 8711c169be1a680f83f35ed362c10776a5a6abc8 Mon Sep 17 00:00:00 2001
From: Track3
Date: Fri, 14 Dec 2018 15:17:48 +0800
Subject: Add i18n support for translation of strings
* Also add Simplified Chinese translations
* See #3
---
layouts/posts/single.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'layouts/posts/single.html')
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 107b6d3..e8b37a8 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -4,7 +4,7 @@
{{ define "main" }}
{{- with .Params.featuredImg }}
-
+
{{- end }}
@@ -25,7 +25,7 @@
{{- end }}
{{- end }}
- {{ .WordCount }} Words
+ {{ i18n "wordCount" . }}
{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}
{{- if .GitInfo }}
{{ .GitInfo.AbbreviatedHash }} @ {{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}
@@ -35,12 +35,12 @@
--
cgit v1.2.3