aboutsummaryrefslogtreecommitdiff
path: root/src/views/index.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/index.pug')
-rw-r--r--src/views/index.pug31
1 files changed, 20 insertions, 11 deletions
diff --git a/src/views/index.pug b/src/views/index.pug
index 9f5a774..0f00efe 100644
--- a/src/views/index.pug
+++ b/src/views/index.pug
@@ -35,20 +35,29 @@ html
35 details 35 details
36 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')} 36 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')}
37 div.sort-opts 37 div.sort-opts
38 a(href=`/r/${subreddit}?sort=hot`) hot 38 div
39 a(href=`/r/${subreddit}?sort=new`) new 39 a(href=`/r/${subreddit}?sort=hot`) hot
40 a(href=`/r/${subreddit}?sort=rising`) rising 40 div
41 a(href=`/r/${subreddit}?sort=top`) top 41 a(href=`/r/${subreddit}?sort=new`) new
42 a(href=`/r/${subreddit}?sort=top&t=day`) top day 42 div
43 a(href=`/r/${subreddit}?sort=top&t=week`) top week 43 a(href=`/r/${subreddit}?sort=rising`) rising
44 a(href=`/r/${subreddit}?sort=top&t=month`) top month 44 div
45 a(href=`/r/${subreddit}?sort=top&t=year`) top year 45 a(href=`/r/${subreddit}?sort=top`) top
46 a(href=`/r/${subreddit}?sort=top&t=all`) top all 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
47 56
48 if posts 57 if posts
49 each child in posts.posts 58 each child in posts.posts
50 +post(child.data) 59 +post(child.data, currentUrl)
51 60
52 if posts.after 61 if posts.after
53 div.footer 62 div.footer
54 div.footer-item 63 div.footer-item