2020-02-03 14:30:19 +00:00
|
|
|
include includes/display_structured
|
|
|
|
|
2020-01-18 15:38:14 +00:00
|
|
|
- const numberFormat = new Intl.NumberFormat().format
|
|
|
|
|
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
2020-01-26 14:56:59 +00:00
|
|
|
title
|
|
|
|
if post.getCaptionIntroduction()
|
|
|
|
=post.getCaptionIntroduction()
|
|
|
|
else
|
|
|
|
=`Post from @${post.getBasicOwner().username}`
|
|
|
|
=` | Bibliogram`
|
2020-02-05 06:05:18 +00:00
|
|
|
include includes/head
|
2020-01-18 15:38:14 +00:00
|
|
|
body.post-page
|
|
|
|
main.post-page-divider
|
|
|
|
section.description-section
|
|
|
|
header.user-header
|
2020-01-26 14:56:59 +00:00
|
|
|
img(src=post.ownerPfpCacheP width=150 height=150 alt="").pfp
|
|
|
|
a.name(href=`/u/${post.getBasicOwner().username}`)= `${post.data.owner.full_name} (@${post.getBasicOwner().username})`
|
|
|
|
if post.getCaption()
|
2020-02-03 14:30:19 +00:00
|
|
|
p.structured-text.description
|
|
|
|
+display_structured(post.getStructuredCaption())
|
2020-01-18 15:38:14 +00:00
|
|
|
section.images-gallery
|
2020-01-29 15:20:20 +00:00
|
|
|
for entry in post.children
|
|
|
|
if entry.isVideo()
|
|
|
|
video(src=entry.getVideoUrlP() controls preload="auto" width=entry.data.dimensions.width height=entry.data.dimensions.height).sized-video
|
|
|
|
else
|
|
|
|
img(src=entry.getDisplayUrlP() alt=entry.getAlt() width=entry.data.dimensions.width height=entry.data.dimensions.height).sized-image
|