diff options
author | tdro <tdro@noreply.example.com> | 2022-10-06 01:41:06 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-10-06 01:41:06 -0400 |
commit | bf80275fd5dcf253cbf09c31492c7bc101421016 (patch) | |
tree | ae582beb9656e4e017cebd0289ac682dcdef982a /themes/default/layouts/partials/meta-word-count.html | |
parent | 2b1c3e9572315ba19daab57fdd1295322288a293 (diff) | |
download | canory-bf80275fd5dcf253cbf09c31492c7bc101421016.tar.gz canory-bf80275fd5dcf253cbf09c31492c7bc101421016.tar.bz2 canory-bf80275fd5dcf253cbf09c31492c7bc101421016.zip |
themes/default/layouts/partials/author: Dry up default user data invocations
Diffstat (limited to 'themes/default/layouts/partials/meta-word-count.html')
-rw-r--r-- | themes/default/layouts/partials/meta-word-count.html | 2 |
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 081c444..e2bcea6 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 ((or .Params.author .Site.Author.default.user) | default "default") -}} +{{- $author := partial "function-authors-data.html" . -}} {{- $limit := $author.wordlimit -}} {{- $wordLimit := gt .WordCount $limit -}} {{- $overLimit := sub .WordCount $limit -}} |