From d7fb3a9065eab673024c1ef5d0e6fd18b8a5d933 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Tue, 21 Apr 2020 10:09:31 +0800
Subject: Add word counter
---
i18n/en.toml | 3 +++
i18n/ja.toml | 3 +++
i18n/zh-hans.toml | 3 +++
i18n/zh-hant.toml | 3 +++
layouts/partials/post-meta.html | 3 +++
5 files changed, 15 insertions(+)
diff --git a/i18n/en.toml b/i18n/en.toml
index 1b9ca5e..bf453c8 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -19,6 +19,9 @@
[postMetaNoTag]
other = "No tag"
+[postMetaWordCount]
+ other = " words"
+
[postCopyrightFront]
other = "Unless otherwise noted, the content of this site is licensed under "
diff --git a/i18n/ja.toml b/i18n/ja.toml
index 5d6cac8..bb56474 100644
--- a/i18n/ja.toml
+++ b/i18n/ja.toml
@@ -19,6 +19,9 @@
[postMetaNoTag]
other = "タグはありません"
+[postMetaWordCount]
+ other = " 文字"
+
[postCopyrightFront]
other = "特定のセクションを除いて、このサイトは "
diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml
index 79bc7a1..b38a405 100644
--- a/i18n/zh-hans.toml
+++ b/i18n/zh-hans.toml
@@ -19,6 +19,9 @@
[postMetaNoTag]
other = "无标签"
+[postMetaWordCount]
+ other = " 字"
+
[postCopyrightFront]
other = "除特殊注明部分,本站内容采用 "
diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml
index f92c898..a1a9681 100644
--- a/i18n/zh-hant.toml
+++ b/i18n/zh-hant.toml
@@ -19,6 +19,9 @@
[postMetaNoTag]
other = "無標籤"
+[postMetaWordCount]
+ other = " 字"
+
[postCopyrightFront]
other = "除特殊註明部分,本站內容採用 "
diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
index 3e90686..193b2fc 100644
--- a/layouts/partials/post-meta.html
+++ b/layouts/partials/post-meta.html
@@ -1,6 +1,9 @@
+
+ {{ .WordCount }}{{ i18n "postMetaWordCount" }} |
+
{{ if .Params.tags }}
{{ range .Params.tags }}
--
cgit v1.2.3