mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
State whether images or videos in /p/ link preview
This commit is contained in:
parent
5f036124d9
commit
aa5d6966a3
@ -26,7 +26,8 @@ html
|
|||||||
if post.children.length >= 2
|
if post.children.length >= 2
|
||||||
if description
|
if description
|
||||||
- description = `\n\n${description}`
|
- description = `\n\n${description}`
|
||||||
- description = `Gallery of ${post.children.length} images.${description}`
|
- let galleryType = post.children.every(c => c.isVideo()) ? "videos" : "images"
|
||||||
|
- description = `Gallery of ${post.children.length} ${galleryType}.${description}`
|
||||||
if description
|
if description
|
||||||
meta(property="og:description" content=description)
|
meta(property="og:description" content=description)
|
||||||
if firstEntry.isVideo()
|
if firstEntry.isVideo()
|
||||||
|
Loading…
Reference in New Issue
Block a user