diff options
Diffstat (limited to 'src/views/index.pug')
-rw-r--r-- | src/views/index.pug | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/views/index.pug b/src/views/index.pug new file mode 100644 index 0000000..d017570 --- /dev/null +++ b/src/views/index.pug | |||
@@ -0,0 +1,19 @@ | |||
1 | doctype html | ||
2 | html | ||
3 | head | ||
4 | meta(charset='UTF-8') | ||
5 | title reddit | ||
6 | link(rel='stylesheet', href='/styles.css') | ||
7 | body | ||
8 | main#content | ||
9 | div.header | ||
10 | a(href=`/r/#{subreddit}`) | ||
11 | h1 r/#{subreddit} | ||
12 | if about | ||
13 | p #{about.public_description} | ||
14 | |||
15 | each child in posts.posts | ||
16 | include post | ||
17 | +post(child.data) | ||
18 | |||
19 | script(src='https://unpkg.com/[email protected]') | ||