From 6879d8e3d3144086737542049d282a832240ebc8 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 11 Sep 2017 23:15:13 +0800 Subject: feat: config to show more post meta word count and read time --- layouts/post/summary.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'layouts/post/summary.html') diff --git a/layouts/post/summary.html b/layouts/post/summary.html index bb55d5f..2cdb7b3 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -3,9 +3,7 @@

{{ .Title }}

- - {{ .Date.Format "2006-01-02" }} - + {{ .Date.Format "2006-01-02" }} {{ with .Params.categories -}} {{- end }} + {{ if .Site.Params.moreMeta -}} + {{ printf $lang.posts.header.wordCount .WordCount }} + {{ printf $lang.posts.header.readingTime .ReadingTime }} + {{- end }}
-- cgit v1.2.3