aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-name.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
committertdro <tdro@noreply.example.com>2022-08-06 02:09:42 -0400
commitd9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch)
tree7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-name.html
parentac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff)
downloadcanory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.gz
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.bz2
canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.zip
themes/default/layouts/partials: Hack in card context menu
Diffstat (limited to 'themes/default/layouts/partials/meta-name.html')
-rw-r--r--themes/default/layouts/partials/meta-name.html23
1 files changed, 12 insertions, 11 deletions
diff --git a/themes/default/layouts/partials/meta-name.html b/themes/default/layouts/partials/meta-name.html
index 2de47eb..7c4a16a 100644
--- a/themes/default/layouts/partials/meta-name.html
+++ b/themes/default/layouts/partials/meta-name.html
@@ -1,14 +1,15 @@
-<micro-metadata-name>
- <h2>
- <b>
- {{- with .Params.feed.name -}}
- {{- . -}}
- {{- else -}}
- {{- partial "author-name.html" . -}}
- {{- end -}}
- </b>
-{{- /* This comment removes trailing newlines and white spaces. */ -}}
- </h2>
+{{- $href := print .Site.BaseURL "/" (partial "author-user.html" .) "/#" -}}
+{{- $name := partial "author-name.html" . -}}
+{{- $title := $name -}}
+
+{{- with .Params.feed -}}
+ {{- $href = print "http://" $.Params.feed.domain -}}
+ {{- $name = $.Params.feed.name -}}
+ {{- $title = $name -}}
+{{- end -}}
+
+<micro-metadata-name title="{{ $title }}">
+ <b><a href="{{ $href }}">{{ $name }}</a></b>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-name>
{{- /* This comment removes trailing newlines and white spaces. */ -}}