mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-22 12:21:36 +00:00
Add home page and search page
This commit is contained in:
parent
cbc3a2bf67
commit
2cc6a2912a
13 changed files with 210 additions and 69 deletions
|
|
@ -1,5 +1,7 @@
|
|||
extends includes/layout.pug
|
||||
|
||||
include includes/video-list-item.pug
|
||||
|
||||
block head
|
||||
title= video.title
|
||||
script(type="module" src=getStaticURL("html", "/static/js/player.js"))
|
||||
|
|
@ -56,13 +58,4 @@ block content
|
|||
h2.related-header Related videos
|
||||
each r in video.recommendedVideos
|
||||
.related-video
|
||||
- let link = `/watch?v=${r.videoId}`
|
||||
a(href=link).thumbnail
|
||||
img(src=`https://i.ytimg.com/vi/${r.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
span.duration= r.second__lengthText
|
||||
.info
|
||||
div.title: a(href=link).title-link= r.title
|
||||
div.author-line
|
||||
a(href=`/channel/${authorId}`).author= r.author
|
||||
= ` • `
|
||||
span.views= r.viewCountText
|
||||
+video_list_item(r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue