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/single.html | 8 +++++--- layouts/post/summary.html | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/post/single.html b/layouts/post/single.html index 62c317c..da83b70 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -6,9 +6,7 @@

{{ .Title }}

- - {{ .Date.Format "2006-01-02" }} - + {{ .Date.Format "2006-01-02" }} {{ with .Params.categories -}}
{{ range . -}} @@ -16,6 +14,10 @@ {{- end }}
{{- end }} + {{ if .Site.Params.moreMeta -}} + {{ printf $lang.posts.header.wordCount .WordCount }} + {{ printf $lang.posts.header.readingTime .ReadingTime }} + {{- end }}
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