From 260030d98f75b77bd37a140addfd88d60661222f Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sat, 18 Dec 2021 09:06:29 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Set=20showWordCount=20default=20?= =?UTF-8?q?to=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 2 +- layouts/partials/article-meta.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 4d693ddb..6d015244 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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 diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html index c0e2a8f3..ea87e653 100644 --- a/layouts/partials/article-meta.html +++ b/layouts/partials/article-meta.html @@ -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 }}