mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-12 19:37:29 +00:00
16 lines
638 B
Plaintext
16 lines
638 B
Plaintext
|
mixin video_list_item(video)
|
||
|
- let link = `/watch?v=${video.videoId}`
|
||
|
a(href=link).thumbnail
|
||
|
img(src=`https://i.ytimg.com/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||
|
span.duration= video.second__lengthText
|
||
|
.info
|
||
|
div.title: a(href=link).title-link= video.title
|
||
|
div.author-line
|
||
|
a(href=`/channel/${video.authorId}`).author= video.author
|
||
|
if video.publishedText
|
||
|
= ` • `
|
||
|
span.published= video.publishedText
|
||
|
= ` • `
|
||
|
span.views= video.viewCountText || video.second__viewCountText
|
||
|
if video.descriptionHtml
|
||
|
div.description!= video.descriptionHtml
|