layouts/_default/single.html: allow per-page showWordCount opt-out
This commit is contained in:
parent
2a6278396c
commit
fa3123d2a6
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
{{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}}
|
{{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}}
|
||||||
<span class="post-reading-time">{{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }}</span>
|
<span class="post-reading-time">{{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }}</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if and (.Param "showWordCount") (eq (.Param "showWordCount") true) -}}
|
{{- if and (.Params.showWordCount | default .Site.Params.showWordCount) (eq (.Param "showWordCount") true) -}}
|
||||||
<span class="post-word-count">{{ .WordCount }} {{ $.Site.Params.words | default "words" }}</span>
|
<span class="post-word-count">{{ .WordCount }} {{ $.Site.Params.words | default "words" }}</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue