From 5f44f7a50db09547da7d06c3a8da464153d9cf20 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 7 May 2020 11:48:10 +0800 Subject: Word count and read time in post metadata --- layouts/partials/post-exlink.html | 1 - layouts/partials/post-meta.html | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 layouts/partials/post-exlink.html (limited to 'layouts/partials') diff --git a/layouts/partials/post-exlink.html b/layouts/partials/post-exlink.html deleted file mode 100644 index da81614..0000000 --- a/layouts/partials/post-exlink.html +++ /dev/null @@ -1 +0,0 @@ - READ MORE  \ No newline at end of file diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index f208210..2fd1091 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,9 +1 @@ - | -{{ .WordCount }}{{ i18n "postMetaWordCount" }} | -{{ if .Params.tags }} -{{ range .Params.tags }} -{{ . }} -{{ end }} -{{ else }} -{{ i18n "postMetaNoTag" }} -{{ end }} \ No newline at end of file +{{ if .Site.Params.showWordCounter }} {{ .WordCount }}{{ i18n "postMetaWordCount" }}{{ end }}{{ if .Site.Params.showReadTime }} {{ .ReadingTime }}{{ i18n "postMetaReadingTime" }}{{ end }}{{ if .Params.tags }} {{ range .Params.tags }}{{ . }} {{ end }}{{ else }}{{ i18n "postMetaNoTag" }}{{ end }} \ No newline at end of file -- cgit v1.2.3