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-anchored.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-anchored.html')
-rw-r--r-- | themes/default/layouts/partials/meta-anchored.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/meta-anchored.html b/themes/default/layouts/partials/meta-anchored.html new file mode 100644 index 0000000..61175b0 --- /dev/null +++ b/themes/default/layouts/partials/meta-anchored.html @@ -0,0 +1,19 @@ +{{ if or .Weight .Params.Liked .Params.feed }} + <micro-metadata-anchored> + {{- partial "meta-via.html" . -}} + + {{ if .Weight }} + <anchored-pinned> + {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/tabler/pinned.svg")) }} + <span>Pinned</span> + </anchored-pinned> + {{ end }} + + {{ if .Params.Liked }} + <anchored-liked> + {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/heart.svg")) }} + <span>Liked</span> + </anchored-liked> + {{ end }} + </micro-metadata-anchored> +{{ end }} |