···67- var post = data.post
8- var comments = data.comments
009doctype html
10html
11 +head(post.title)
···27 |
28 | ·
29 |
30- a(href=`/r/${post.subreddit}`) r/#{post.subreddit}
3132 div.info-container
33 - var domain = (new URL(post.url)).hostname
···6566 if post.selftext_html
67 div.self-text
68- != post.selftext_html
6970 hr
71
···67- var post = data.post
8- var comments = data.comments
9+- var viewQuery = 'view=' + (query && query.view ? query.view : 'compact')
10+- var sortQuery = 'sort=' + (query && query.sort ? query.sort + (query.t ? '&t=' + query.t : '') : 'hot')
11doctype html
12html
13 +head(post.title)
···29 |
30 | ·
31 |
32+ a(href=`/r/${post.subreddit}?${sortQuery}&${viewQuery}`) r/#{post.subreddit}
3334 div.info-container
35 - var domain = (new URL(post.url)).hostname
···6768 if post.selftext_html
69 div.self-text
70+ != convertInlineImageLinks(post.selftext_html)
7172 hr
73
+21-12
src/views/index.pug
···2include ../mixins/header
3include ../mixins/head
4include ../utils
005doctype html
6html
7 +head("home")
···14 div.sub-title
15 h1
16 if isMulti
17- a(href=`/`) lurker
18 else
19- a(href=`/r/${subreddit}`)
20 | r/#{subreddit}
21 if !isMulti
22 div#button-container
···32 a(href="https://donate.stripe.com/dR62bTaZH1295Da4gg") oppiliappan
33 |, author of lurker
34 hr
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
000044 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
00052 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
···2include ../mixins/header
3include ../mixins/head
4include ../utils
5+ - var viewQuery = query && query.view ? query.view : 'compact'
6+ - var sortQuery = query && query.sort ? query.sort + (query.t ? '&t=' + query.t : '') : 'hot'
7doctype html
8html
9 +head("home")
···16 div.sub-title
17 h1
18 if isMulti
19+ a(href=`/?sort=${sortQuery}&view=${viewQuery}`) lurker
20 else
21+ a(href=`/r/${subreddit}?sort=${sortQuery}&view=${viewQuery}`)
22 | r/#{subreddit}
23 if !isMulti
24 div#button-container
···34 a(href="https://donate.stripe.com/dR62bTaZH1295Da4gg") oppiliappan
35 |, author of lurker
36 hr
37+ details.sort-details
38 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')}
39 div.sort-opts
40 div
41+ a(href=`/r/${subreddit}?sort=hot&view=${viewQuery}`) hot
42 div
43+ a(href=`/r/${subreddit}?sort=new&view=${viewQuery}`) new
44 div
45+ a(href=`/r/${subreddit}?sort=rising&view=${viewQuery}`) rising
46+ div
47+ a(href=`/r/${subreddit}?sort=top&view=${viewQuery}`) top
48+ div
49+ a(href=`/r/${subreddit}?sort=top&t=day&view=${viewQuery}`) top day
50 div
51+ a(href=`/r/${subreddit}?sort=top&t=week&view=${viewQuery}`) top week
52 div
53+ a(href=`/r/${subreddit}?sort=top&t=month&view=${viewQuery}`) top month
54 div
55+ a(href=`/r/${subreddit}?sort=top&t=year&view=${viewQuery}`) top year
56 div
57+ a(href=`/r/${subreddit}?sort=top&t=all&view=${viewQuery}`) top all
58+ details.view-details
59+ summary.viewing viewing as #{viewQuery}
60+ div.view-opts
61 div
62+ a(href=`/r/${subreddit}?sort=${sortQuery}&view=compact`) compact
63 div
64+ a(href=`/r/${subreddit}?sort=${sortQuery}&view=card`) card
6566 if posts
67 each child in posts.posts
+8-3
src/views/media.pug
···2doctype html
3html
4 +head("home")
5- body
6- div.media-maximized-container
000007 if kind == 'img'
8- img(src=url).media-maximized
9 else
10 video(src=url controls).media-maximized