layouts/_default/single.html: showWordCount typo

This commit is contained in:
revsuine 2024-11-25 02:17:15 +00:00
parent 13ca81158d
commit 2a6278396c
Signed by: revsuine
GPG key ID: 3F257B68F5BC9339

View file

@ -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 "readingTime") true) -}} {{- if and (.Param "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>