···22 +header(user)
23 div.hero
24 h3.sub-title
25+ if from
26+ a(href=`${from}#${post.id}`) <- back
27+ |
28+ | ·
29+ |
30 a(href=`/r/${post.subreddit}`) r/#{post.subreddit}
3132 div.info-container
+20-11
src/views/index.pug
···35 details
36 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')}
37 div.sort-opts
38- a(href=`/r/${subreddit}?sort=hot`) hot
39- a(href=`/r/${subreddit}?sort=new`) new
40- a(href=`/r/${subreddit}?sort=rising`) rising
41- a(href=`/r/${subreddit}?sort=top`) top
42- a(href=`/r/${subreddit}?sort=top&t=day`) top day
43- a(href=`/r/${subreddit}?sort=top&t=week`) top week
44- a(href=`/r/${subreddit}?sort=top&t=month`) top month
45- a(href=`/r/${subreddit}?sort=top&t=year`) top year
46- a(href=`/r/${subreddit}?sort=top&t=all`) top all
0000000004748 if posts
49 each child in posts.posts
50- +post(child.data)
51-52 if posts.after
53 div.footer
54 div.footer-item
···35 details
36 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')}
37 div.sort-opts
38+ div
39+ a(href=`/r/${subreddit}?sort=hot`) hot
40+ div
41+ a(href=`/r/${subreddit}?sort=new`) new
42+ div
43+ a(href=`/r/${subreddit}?sort=rising`) rising
44+ div
45+ a(href=`/r/${subreddit}?sort=top`) top
46+ div
47+ a(href=`/r/${subreddit}?sort=top&t=day`) top day
48+ div
49+ a(href=`/r/${subreddit}?sort=top&t=week`) top week
50+ div
51+ a(href=`/r/${subreddit}?sort=top&t=month`) top month
52+ div
53+ a(href=`/r/${subreddit}?sort=top&t=year`) top year
54+ div
55+ a(href=`/r/${subreddit}?sort=top&t=all`) top all
5657 if posts
58 each child in posts.posts
59+ +post(child.data, currentUrl)
60+61 if posts.after
62 div.footer
63 div.footer-item