aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-25 23:45:46 -0400
committertdro <tdro@noreply.example.com>2022-05-25 23:45:46 -0400
commit96b2d6ba409f8195f1d89f7dce4986a7d9837976 (patch)
treee9d3c2c32fcb163f3f3dba5af1d82c8977ac75bc /themes/default/layouts/partials/meta.html
parentf2fb20b91c465d5cdacbbbbc1dc87055e20cc281 (diff)
downloadcanory-96b2d6ba409f8195f1d89f7dce4986a7d9837976.tar.gz
canory-96b2d6ba409f8195f1d89f7dce4986a7d9837976.tar.bz2
canory-96b2d6ba409f8195f1d89f7dce4986a7d9837976.zip
themes/default/layouts/_default/summary: Collect feed metadata
Namespace summary metadata partials. Add metadata to generated markdown.
Diffstat (limited to 'themes/default/layouts/partials/meta.html')
-rw-r--r--themes/default/layouts/partials/meta.html64
1 files changed, 0 insertions, 64 deletions
diff --git a/themes/default/layouts/partials/meta.html b/themes/default/layouts/partials/meta.html
deleted file mode 100644
index 608f3dc..0000000
--- a/themes/default/layouts/partials/meta.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }}
-{{ $source := print $author.user "/messages/" .File.LogicalName }}
-
-<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>{{ partial "author-name.html" . }}</b></h2>
-
- &middot; {{ partial "handle.html" . }}
-
- {{ if .Draft }}
- &middot; <draft-label><em>Draft</em></draft-label>
- {{ end }}
-
- &middot; {{- partial "read-time.html" . -}}
-
- &middot; {{- partial "word-count.html" . -}}
-
- {{ if .Params.Unlisted }}
- &middot; <unlisted-entry title="This message is off the record">
- {{ safeHTML (readFile "static/icons/feather/eye-off.svg") }}
- <span>unlisted</span></unlisted-entry>
- {{ end }}
-
- &middot; <a href="{{ .Site.BaseURL }}/{{ $author.user }}/messages/{{ path.Base .Permalink }}#{{ partial "card-id.html" . }}">
- <time
- datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
- title="{{ .Date | time.Format "Monday, January 2, 2006 at 15:04:05 MST" }}">
- {{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") }}
- </time>
- </a>
-
- {{- if .ExpiryDate -}}
- &middot; {{- partial "expiry-date.html" . -}}
- {{- end -}}
-
- &middot; <cite><a title="#{{ partial "card-id.html" . }}" href="#{{ partial "card-id.html" . }}">#id</a></cite>
-
- {{ if not .ExpiryDate }}
- &middot; <cite><a title="{{ .Site.BaseURL }}/raw/{{ $source }}" href="{{ .Site.BaseURL }}/raw/{{ $source }}">raw</a></cite>
- {{- end -}}
-</section>