add wiki links to subreddit view

This commit is contained in:
teddit 2021-01-05 02:51:38 +01:00
parent 80ed4f1550
commit 5f5397e9e3
2 changed files with 17 additions and 2 deletions

View File

@ -48,6 +48,8 @@ html
a(href="/r/" + subreddit + "/controversial") controversial
li(class=sortby === 'top' ? 'active' : '')
a(href="/r/" + subreddit + "/top") top
li
a(href="/r/" + subreddit + "/wiki") wiki
#links.sr
if sortby === 'top' || sortby === 'controversial'
details

View File

@ -15,7 +15,20 @@ html
h1 teddit
.bottom
a(href="/r/" + subreddit + "", class="subreddit")
h2 wiki - #{subreddit}
.wiki-content
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
!= content_html
include includes/footer.pug