aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-context-menu.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-06 01:41:06 -0400
committertdro <tdro@noreply.example.com>2022-10-06 01:41:06 -0400
commitbf80275fd5dcf253cbf09c31492c7bc101421016 (patch)
treeae582beb9656e4e017cebd0289ac682dcdef982a /themes/default/layouts/partials/meta-context-menu.html
parent2b1c3e9572315ba19daab57fdd1295322288a293 (diff)
downloadcanory-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-context-menu.html')
-rw-r--r--themes/default/layouts/partials/meta-context-menu.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html
index de6dd0b..26c3842 100644
--- a/themes/default/layouts/partials/meta-context-menu.html
+++ b/themes/default/layouts/partials/meta-context-menu.html
@@ -1,5 +1,5 @@
-{{- $id := delimit (shuffle (seq 1 7)) "" -}}
-{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}}
+{{- $id := delimit (shuffle (seq 1 7)) "" -}}
+{{- $author := partial "function-authors-data.html" . -}}
{{- $href := print .Site.BaseURL "/" $author.user "/messages/" (path.Base .Permalink) "/" -}}
{{- $plain := print .Site.BaseURL "/" $author.user "/messages/" (path.Base .Permalink) "/index.txt" -}}