diff options
author | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
commit | d9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch) | |
tree | 7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-view.html | |
parent | ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff) | |
download | canory-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-view.html')
-rw-r--r-- | themes/default/layouts/partials/meta-view.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/meta-view.html b/themes/default/layouts/partials/meta-view.html new file mode 100644 index 0000000..d76798d --- /dev/null +++ b/themes/default/layouts/partials/meta-view.html @@ -0,0 +1,18 @@ +{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} + +<micro-metadata-view> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + <a + {{ with .Params.feed.self -}} + href="{{ $.Site.BaseURL }}/{{ . }}" + {{ else }} + href="{{ .Site.BaseURL }}/{{ $author.user }}/messages/{{ path.Base .Permalink }}/#{{ partial "card-id.html" . }}" + {{ end }} + > + {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/external-link.svg")) -}} + <span>view</span> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + </a> +{{- /* This comment removes trailing newlines and white spaces. */ -}} +</micro-metadata-view> +{{- /* This comment removes trailing newlines and white spaces. */ -}} |