aboutsummaryrefslogtreecommitdiff
path: root/src/views/index.pug
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-05 22:44:56 +0000
committerAkshay <[email protected]>2024-11-05 22:44:56 +0000
commit47b4fd3b1233353e56c99c0b9a5a8633d8bc2617 (patch)
treee189fc34780bd67146bb6301dd28b4f803405b7f /src/views/index.pug
parentf1bf73b65a29cb733651b1c990e27f84769dc5c3 (diff)
subs as home page
Diffstat (limited to 'src/views/index.pug')
-rw-r--r--src/views/index.pug13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/views/index.pug b/src/views/index.pug
index add4c8e..f7f67b9 100644
--- a/src/views/index.pug
+++ b/src/views/index.pug
@@ -8,7 +8,7 @@ doctype html
8html 8html
9 +head() 9 +head()
10 +subMgmt() 10 +subMgmt()
11 script. 11 script(defer).
12 function updateButton(sub) { 12 function updateButton(sub) {
13 var b = document.getElementById("button-container"); 13 var b = document.getElementById("button-container");
14 b.innerHTML = ''; 14 b.innerHTML = '';
@@ -36,13 +36,16 @@ html
36 body 36 body
37 main#content 37 main#content
38 +header() 38 +header()
39
40 div.hero 39 div.hero
41 div.sub-title 40 div.sub-title
42 h1 41 h1
43 a(href=`/r/${subreddit}`) 42 if isMulti
44 | r/#{subreddit} 43 a(href=`/`) readit
45 div#button-container 44 else
45 a(href=`/r/${subreddit}`)
46 | r/#{subreddit}
47 if !isMulti
48 div#button-container
46 if about 49 if about
47 p #{about.public_description} 50 p #{about.public_description}
48 details 51 details