diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-anchored.html')
-rw-r--r-- | themes/default/layouts/partials/meta-anchored.html | 24 |
1 files changed, 24 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..872f98e --- /dev/null +++ b/themes/default/layouts/partials/meta-anchored.html @@ -0,0 +1,24 @@ +{{- if or .Weight .Params.Liked .Params.feed -}} + <meta-anchored> + {{- $author := .Section -}} + {{- partial "meta-via.html" . -}} + + {{- if .Weight -}} + <a data-anchored="pinned"> + {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/pinned.svg")) }} + <span>Pinned</span> + </a> + {{- end -}} + + {{- 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> + </a> + {{- end -}} + </meta-anchored> +{{- end -}} |