blob: 2b2b76ef73f8d7a9279ef1e5466f22e3e6f1a7df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
include ../mixins/comment
doctype html
html
head
meta(charset='UTF-8')
title reddit
link(rel='stylesheet', href='/styles.css')
script(src="https://cdn.dashjs.org/latest/dash.all.min.js")
body
main#content
div.hero
a(href=`/r/${post.subreddit}`)
h4 ← r/#{post.subreddit}
h2 #{post.title}
if post.post_hint == 'image'
img(src=post.url).post-media
else if post.post_hint == 'hosted:video'
- var url = post.secure_media.reddit_video.dash_url
video(controls data-dashjs-player src=`${url}`).post-media
if post.selftext_html
p.self-text !{post.selftext_html}
div.comments-container
each child in comments
+comment(child, true)
script(src='https://unpkg.com/[email protected]')
|