aboutsummaryrefslogtreecommitdiff
path: root/src/views/comments.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/comments.pug')
-rw-r--r--src/views/comments.pug35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug
index 1caf65a..1265609 100644
--- a/src/views/comments.pug
+++ b/src/views/comments.pug
@@ -47,23 +47,24 @@ html
47 h2.post-title 47 h2.post-title
48 != post.title 48 != post.title
49 49
50 if isPostGallery(post) 50 div.image-viewer.main-content
51 div.gallery 51 if isPostGallery(post)
52 each item in postGalleryItems(post) 52 div.gallery
53 div.gallery-item 53 each item in postGalleryItems(post)
54 div.gallery-item-idx 54 div.gallery-item
55 | #{`${item.idx}/${item.total}`} 55 a(href=`/media/${item.url}`)
56 a(href=`/media/${item.url}`) 56 img(src=item.url loading="lazy")
57 img(src=item.url loading="lazy") 57 div.gallery-item-idx
58 else if isPostImage(post) 58 | #{`${item.idx}/${item.total}`}
59 a(href=`/media/${post.url}`) 59 else if isPostImage(post)
60 img(src=post.url).post-media 60 a(href=`/media/${post.url}`)
61 else if isPostVideo(post) 61 img(src=post.url).post-media
62 - var url = post.secure_media.reddit_video.dash_url 62 else if isPostVideo(post)
63 video(controls data-dashjs-player src=`${url}`).post-media 63 - var url = post.secure_media.reddit_video.dash_url
64 else if isPostLink(post) 64 video(controls data-dashjs-player src=`${url}`).post-media
65 a(href=post.url) 65 else if isPostLink(post)
66 | #{post.url} 66 a(href=post.url)
67 | #{post.domain} ↗
67 68
68 if post.selftext_html 69 if post.selftext_html
69 div.self-text 70 div.self-text