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 a(href="/r/" + subreddit + "/controversial") controversial
li(class=sortby === 'top' ? 'active' : '') li(class=sortby === 'top' ? 'active' : '')
a(href="/r/" + subreddit + "/top") top a(href="/r/" + subreddit + "/top") top
li
a(href="/r/" + subreddit + "/wiki") wiki
#links.sr #links.sr
if sortby === 'top' || sortby === 'controversial' if sortby === 'top' || sortby === 'controversial'
details details

View File

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