summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authoramzrk22020-04-21 10:09:31 +0800
committeramzrk22020-04-21 10:09:31 +0800
commitd7fb3a9065eab673024c1ef5d0e6fd18b8a5d933 (patch)
treeb5523cbcb1d134c948f47661824b59f82ea47c91 /layouts
parentad5b896b798b792cd0cbc4ed6c1ec02a76620e95 (diff)
downloadhugo-theme-fuji-d7fb3a9065eab673024c1ef5d0e6fd18b8a5d933.tar.gz
hugo-theme-fuji-d7fb3a9065eab673024c1ef5d0e6fd18b8a5d933.tar.bz2
hugo-theme-fuji-d7fb3a9065eab673024c1ef5d0e6fd18b8a5d933.zip
Add word counter
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/post-meta.html3
1 files changed, 3 insertions, 0 deletions
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 }}