2021-01-05 02:41:57 +01:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
title wiki /r/#{subreddit}
|
2022-06-10 16:09:54 +02:00
|
|
|
meta(property='og:title', content='wiki /r/' + subreddit)
|
|
|
|
include includes/meta_default.pug
|
2021-01-05 02:41:57 +01:00
|
|
|
include includes/head.pug
|
2021-04-01 22:29:47 +02:00
|
|
|
body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "")
|
2021-01-05 02:41:57 +01:00
|
|
|
include includes/topbar.pug
|
|
|
|
if json === null
|
|
|
|
h1 Error occured
|
|
|
|
if error
|
|
|
|
p Error: #{JSON.stringify(json.error_data)}
|
|
|
|
else
|
|
|
|
header
|
|
|
|
a(href="/", class="main")
|
|
|
|
h1 teddit
|
|
|
|
.bottom
|
|
|
|
a(href="/r/" + subreddit + "", class="subreddit")
|
2021-01-05 02:51:38 +01:00
|
|
|
h2 #{subreddit}
|
|
|
|
ul.tabmenu
|
|
|
|
li
|
|
|
|
a(href="/r/" + subreddit) hot
|
|
|
|
li
|
|
|
|
a(href="/r/" + subreddit + "/new") new
|
|
|
|
li
|
|
|
|
a(href="/r/" + subreddit + "/rising") rising
|
|
|
|
li
|
|
|
|
a(href="/r/" + subreddit + "/controversial") controversial
|
|
|
|
li
|
|
|
|
a(href="/r/" + subreddit + "/top") top
|
|
|
|
li(class="active")
|
|
|
|
a(href="/r/" + subreddit + "/wiki") wiki
|
|
|
|
.wiki-page.wiki-content
|
2021-01-05 02:41:57 +01:00
|
|
|
!= content_html
|
|
|
|
include includes/footer.pug
|