add /r/popular to the top bar

This commit is contained in:
teddit 2021-01-12 16:23:18 +01:00
parent c0f9f2e932
commit 5c36061261

View File

@ -9,10 +9,12 @@ div#topbar
a(href="/preferences") [preferences]
.top-links
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
a(href="/r/popular") Popular
a(href="/r/all") All
each subreddit in user_preferences.subbed_subreddits
a(href="/r/" + subreddit) #{subreddit}
else
a(href="/r/popular") Popular
a(href="/r/all") All
a(href="/r/AskReddit") AskReddit
a(href="/r/pics") pics