aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r--layouts/post/single.html8
1 files changed, 5 insertions, 3 deletions
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 @@
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">
- <span class="post-time">
- {{ .Date.Format "2006-01-02" }}
- </span>
+ <span class="post-time"> {{ .Date.Format "2006-01-02" }} </span>
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
@@ -16,6 +14,10 @@
{{- end }}
</div>
{{- end }}
+ {{ if .Site.Params.moreMeta -}}
+ <span class="more-meta"> {{ printf $lang.posts.header.wordCount .WordCount }} </span>
+ <span class="more-meta"> {{ printf $lang.posts.header.readingTime .ReadingTime }} </span>
+ {{- end }}
</div>
</header>