1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-02 02:41:34 +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
No known key found for this signature in database
GPG key ID: 81015DF9AA8607E1
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