aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-anchored.html
blob: 872f98ece47df6b01dcf3d640f2eb8c7365d54f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 -}}