1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-02 10:41:36 +00:00

Add date to posts

This commit is contained in:
Cadence Ember 2020-05-30 18:59:59 +12:00
parent 00920d8f6d
commit ba5a5a7653
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
4 changed files with 28 additions and 11 deletions

View file

@ -25,15 +25,18 @@ mixin post(post, headerWithNavigation)
div.relative-box
div.scrolling-box
if post.getCaption()
p.structured-text.description
+display_structured(post.getStructuredCaption())
div
if post.getCaption()
p.structured-text.description
+display_structured(post.getStructuredCaption())
if willDisplayAltInDescription
each child in post.children
- let caption = child.data.accessibility_caption
if caption
p.description= caption
footer
if willDisplayAltInDescription
- let caption = post.children[0].data.accessibility_caption
if caption
p.description= caption
p.description
span Posted on #[time(datetime=post.date.toISOString() data-local-date)= post.getDisplayDate()].
section.images-gallery
for entry in post.children