aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-word-count.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-17 16:31:53 -0400
committertdro <tdro@noreply.example.com>2022-06-17 16:31:53 -0400
commita7e31ec150c409c3c4a9bd8a6503dda852a2d103 (patch)
tree718c023e875c08fe9b0b4f0814d8538b09db5d96 /themes/default/layouts/partials/meta-word-count.html
parent494ee6f4b0d708c20ed66d946b727159cf90f1c4 (diff)
downloadcanory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.tar.gz
canory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.tar.bz2
canory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.zip
config: Generate authors from configuration
Diffstat (limited to 'themes/default/layouts/partials/meta-word-count.html')
-rw-r--r--themes/default/layouts/partials/meta-word-count.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-word-count.html b/themes/default/layouts/partials/meta-word-count.html
index f566b07..d4a4065 100644
--- a/themes/default/layouts/partials/meta-word-count.html
+++ b/themes/default/layouts/partials/meta-word-count.html
@@ -1,4 +1,4 @@
-{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }}
+{{ $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") }}
{{ $limit := $author.wordlimit }}
{{ $wordLimit := gt .WordCount $limit }}
{{ $overLimit := sub .WordCount $limit }}