mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 10:55:07 +00:00
Add date to posts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -362,8 +362,7 @@ body
|
||||
background-color: map-get($theme, "background-post-caption")
|
||||
color: map-get($theme, "foreground-primary")
|
||||
|
||||
@media screen and (min-width: $layout-b-min)
|
||||
.relative-box
|
||||
@media screen and (min-width: $layout-b-min)
|
||||
position: relative
|
||||
box-shadow: map-get($theme, "shadow-down-inset")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user