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:
parent
95cc416e08
commit
a5ab771969
7 changed files with 96 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue