aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/card-meta.html
blob: 3c7f41146d3cc21161b2a33eed37043969a3f95e (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<micro-thumbnail hidden>
  {{ partial "profile-picture.html" . }}
</micro-thumbnail>

<section>
  {{ if or .Weight .Params.Liked .Params.feed }}
    <anchored-entry>
      {{- if .Params.feed -}}
        {{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/rss.svg")) }}
        <a data-hover
          title="{{ partial "author-user.html" . }}@{{ (urls.Parse .Site.BaseURL).Host }}"
          href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}/feeds/#">
            via @{{ partial "author-user.html" . }}
        </a>
      {{- end -}}

      {{ if .Weight }}
        <anchored-pinned>
         {{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/tabler/pinned.svg")) }}
         <span>Pinned</span>
        </anchored-pinned>
      {{ end }}

      {{ if .Params.Liked }}
        <anchored-liked>
         {{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/heart.svg")) }}
         <span>Liked</span>
        </anchored-liked>
      {{ end }}
    </anchored-entry>
  {{ end }}

  {{- partial "meta-name.html" . -}}

  {{- partial "meta-handle.html" . -}}

  {{- partial "meta-draft.html" . -}}

  {{- partial "meta-read-time.html" . -}}

  {{- partial "meta-word-count.html" . -}}

  {{- partial "meta-unlisted.html" . -}}

  {{- partial "meta-date-time.html" . -}}

  {{- partial "meta-expiry-date.html" . -}}

  {{- partial "meta-link.html" . -}}

  {{- partial "meta-source.html" . -}}
</section>