From fa3123d2a6aac6f39cfd1ee8e092a2700c348a57 Mon Sep 17 00:00:00 2001 From: revsuine Date: Mon, 25 Nov 2024 02:56:20 +0000 Subject: [PATCH] layouts/_default/single.html: allow per-page showWordCount opt-out --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7966e27..7aee23c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,7 +18,7 @@ {{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}} {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} {{- end -}} - {{- if and (.Param "showWordCount") (eq (.Param "showWordCount") true) -}} + {{- if and (.Params.showWordCount | default .Site.Params.showWordCount) (eq (.Param "showWordCount") true) -}} {{ .WordCount }} {{ $.Site.Params.words | default "words" }} {{- end -}}