diff options
Diffstat (limited to 'themes/default/layouts/partials/card-meta.html')
-rw-r--r-- | themes/default/layouts/partials/card-meta.html | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/card-meta.html b/themes/default/layouts/partials/card-meta.html new file mode 100644 index 0000000..23219e7 --- /dev/null +++ b/themes/default/layouts/partials/card-meta.html @@ -0,0 +1,63 @@ +<micro-thumbnail hidden> + {{ partial "profile-picture.html" . }} +</micro-thumbnail> + +<section> + {{ if or .Weight .Params.Liked }} + <anchored-entry> + + {{ if .Weight }} + <anchored-pinned> + {{ safeHTML (readFile "static/icons/tabler/pinned.svg") }} + </anchored-pinned> + <span>Pinned</span> + {{ end }} + + {{ if .Params.Liked }} + <anchored-liked> + {{ safeHTML (readFile "static/icons/feather/heart.svg") }} + </anchored-liked> + <span>Liked</span> + {{ end }} + + </anchored-entry> + {{ end }} + + <h2> + <b> + {{- with .Params.feedName -}} + {{ . }} + {{- else -}} + {{ partial "author-name.html" . }} + {{- end -}} + </b> + </h2> + + · {{ partial "meta-handle.html" . }} + + {{ if .Draft }} + · <draft-label><em>Draft</em></draft-label> + {{ end }} + + · {{- partial "meta-read-time.html" . -}} + + · {{- partial "meta-word-count.html" . -}} + + {{ if .Params.Unlisted }} + · <unlisted-entry title="This message is off the record"> + {{ safeHTML (readFile "static/icons/feather/eye-off.svg") }} + <span>unlisted</span></unlisted-entry> + {{ end }} + + · {{- partial "meta-date-time.html" . -}} + + {{- if .ExpiryDate -}} + · {{- partial "meta-expiry-date.html" . -}} + {{- end -}} + + · <cite><a title="#{{ partial "card-id.html" . }}" href="#{{ partial "card-id.html" . }}">#id</a></cite> + + {{ if not .ExpiryDate }} + · {{ partial "meta-source.html" . -}} + {{- end -}} +</section> |