diff options
author | tdro <tdro@noreply.example.com> | 2024-02-21 19:30:29 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-02-21 19:30:29 -0500 |
commit | 574bc4a6f013a616b2dcf73d239943924dff6bf1 (patch) | |
tree | db030cf951b789eaee25fcd7111d629416dbf00f /themes/default/layouts/partials/meta-anchored.html | |
parent | a1ca7f48d94ba56c235f8b28f24a578e41a4138d (diff) | |
download | canory-574bc4a6f013a616b2dcf73d239943924dff6bf1.tar.gz canory-574bc4a6f013a616b2dcf73d239943924dff6bf1.tar.bz2 canory-574bc4a6f013a616b2dcf73d239943924dff6bf1.zip |
themes/default/layouts/partials/meta: Merge anchored elements
Diffstat (limited to 'themes/default/layouts/partials/meta-anchored.html')
-rw-r--r-- | themes/default/layouts/partials/meta-anchored.html | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/themes/default/layouts/partials/meta-anchored.html b/themes/default/layouts/partials/meta-anchored.html index 431fa64..d19bcde 100644 --- a/themes/default/layouts/partials/meta-anchored.html +++ b/themes/default/layouts/partials/meta-anchored.html @@ -1,19 +1,24 @@ -{{ if or .Weight .Params.Liked .Params.feed }} +{{- if or .Weight .Params.Liked .Params.feed -}} <micro-metadata-anchored> + {{- $author := .Section -}} {{- partial "meta-via.html" . -}} - {{ if .Weight }} - <anchored-pinned> + {{- if .Weight -}} + <a data-anchored="pinned"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/pinned.svg")) }} <span>Pinned</span> - </anchored-pinned> - {{ end }} + </a> + {{- end -}} - {{ if .Params.Marked }} - <anchored-marked> + {{- if .Params.Marked -}} + <a + href="{{ "" | absURL }}/{{ $author }}/marks/#marks" + data-anchored="marked" + data-hover="" + > {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/bookmark.svg")) }} <span>Marked</span> - </anchored-marked> - {{ end }} + </a> + {{- end -}} </micro-metadata-anchored> -{{ end }} +{{- end -}} |