aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/post/single.html8
-rw-r--r--layouts/post/summary.html8
2 files changed, 10 insertions, 6 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>
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 @@
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></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 . -}}
@@ -13,6 +11,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>
<!-- Content -->