Remove word count.

This commit is contained in:
Andrey Romancev 2018-12-16 01:38:14 +03:00
parent 1543bf4e19
commit 914e7ef989
No known key found for this signature in database
GPG Key ID: 9C1C0E0087F14BD9

View File

@ -23,14 +23,13 @@
{{- .Date.Format "January 2, 2006" -}} {{- .Date.Format "January 2, 2006" -}}
</time> </time>
{{/* {{/*
Show "reading time" and "word count" but only if one of the following are true: Show "reading time" but only if one of the following are true:
1) A global config `params` value is set `show_reading_time = true` 1) A global config `params` value is set `show_reading_time = true`
2) A section front matter value is set `show_reading_time = true` 2) A section front matter value is set `show_reading_time = true`
3) A page front matter value is set `show_reading_time = true` 3) A page front matter value is set `show_reading_time = true`
*/}} */}}
{{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}} {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
<span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span> <span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
{{ end }} {{ end }}
</header> </header>