diff options
| author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 23:15:13 +0800 | 
|---|---|---|
| committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 23:15:13 +0800 | 
| commit | 6879d8e3d3144086737542049d282a832240ebc8 (patch) | |
| tree | 7e25206bbd9d92bdbc8c53d7ca34c0a52c47e258 /layouts/post/single.html | |
| parent | 10eacc006661779a5bea51ff011080d535e8c446 (diff) | |
feat: config to show more post meta
word count and read time
Diffstat (limited to 'layouts/post/single.html')
| -rw-r--r-- | layouts/post/single.html | 8 | 
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> | 
