aboutsummaryrefslogtreecommitdiff
path: root/src/views/index.pug
blob: d017570b817348f220908129abdaa9ac6639ae9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
doctype html
html
  head
    meta(charset='UTF-8')
    title reddit
    link(rel='stylesheet', href='/styles.css')
  body
    main#content
      div.header
        a(href=`/r/#{subreddit}`)
          h1 r/#{subreddit}
        if about
          p #{about.public_description}

      each child in posts.posts
        include post
        +post(child.data)

    script(src='https://unpkg.com/[email protected]')