blob: f582be6b41f0ed3bf09d57110f3b52c1d09c130a (
plain)
1
2
3
4
5
6
7
8
9
10
|
{{- $postCount := .Site.Params.postCount }}
{{- $page := .Page}}
{{- with $postCount.enable }}
{{- with $postCount.wordcount }}
<span class="post-wordcount hidden-xs" itemprop="wordCount">{{ T "article_wordcount" -}}{{- $page.WordCount }}{{ T "unit_word" }}</span>
{{- end }}
{{- with $postCount.min2read }}
<span class="post-readcount hidden-xs" itemprop="timeRequired">{{ T "article_readcount" }}{{- $page.ReadingTime }}{{ T "unit_time" }} </span>
{{- end }}
{{- end }}
|