1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-16 11:08:49 +00:00

Add video support (experimental!)

This commit is contained in:
Cadence Fish
2020-01-30 04:20:20 +13:00
parent 95cc416e08
commit a5ab771969
7 changed files with 96 additions and 43 deletions

View File

@@ -22,5 +22,8 @@ html
if post.getCaption()
p.description= post.getCaption()
section.images-gallery
for image in post.children
img(src=image.getDisplayUrlP() alt=image.getAlt() width=image.data.dimensions.width height=image.data.dimensions.height).sized-image
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