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/author-user.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/author-user.html')
-rw-r--r-- | themes/default/layouts/partials/author-user.html | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/author-user.html b/themes/default/layouts/partials/author-user.html index 6c6613e..09e71f1 100644 --- a/themes/default/layouts/partials/author-user.html +++ b/themes/default/layouts/partials/author-user.html @@ -1,8 +1,3 @@ -{{- $author := .Data.Author -}} - -{{- with $author -}} -{{- else -}} - {{- $author = index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} -{{- end -}} +{{- $author := partial "function-authors-data.html" . -}} {{- $author.user -}} |