diff options
-rw-r--r-- | i18n/en.toml | 3 | ||||
-rw-r--r-- | i18n/ja.toml | 3 | ||||
-rw-r--r-- | i18n/zh-hans.toml | 3 | ||||
-rw-r--r-- | i18n/zh-hant.toml | 3 | ||||
-rw-r--r-- | layouts/partials/post-meta.html | 3 |
5 files changed, 15 insertions, 0 deletions
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 @@ <span class="post-meta-item post-meta-date"> <time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }} | </time> </span> +<span class="post-meta-item post-meta-count"> + <span>{{ .WordCount }}{{ i18n "postMetaWordCount" }} | </span> +</span> <span class="post-meta-item post-meta-tags"> {{ if .Params.tags }} {{ range .Params.tags }} |