🔧 Set showWordCount default to false

pull/61/head
James Panther 2021-12-18 09:06:29 +11:00
parent 27ccae6f7d
commit 260030d98f
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ colorScheme = "congo"
showHeadingAnchors = true
showPagination = true
showReadingTime = true
showWordCount = false
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
showWordCount = true
[list]
showBreadcrumbs = false

View File

@ -16,7 +16,7 @@
{{ $meta.Add "partials" (slice (partial "meta/date.html" .)) }}
{{ end }}
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default true)) (ne .WordCount 0) }}
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }}
{{ $meta.Add "partials" (slice (partial "meta/word-count.html" .)) }}
{{ end }}