From 5c360612613be9999b8db3db4f9a8d42dd1f1a28 Mon Sep 17 00:00:00 2001 From: teddit Date: Tue, 12 Jan 2021 16:23:18 +0100 Subject: [PATCH] add /r/popular to the top bar --- views/includes/topbar.pug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/includes/topbar.pug b/views/includes/topbar.pug index 62ee573..8bae3b7 100644 --- a/views/includes/topbar.pug +++ b/views/includes/topbar.pug @@ -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