diff --git a/config.js.template b/config.js.template index f71ff6f..0b54c5a 100644 --- a/config.js.template +++ b/config.js.template @@ -28,7 +28,7 @@ const config = { searches: 600, sidebar: 60 * 60 * 24 * 7 // 7 days }, - post_comments_sort: 'confidence', // "confidence" is the default sorting in Reddit. Must be onee of: confidence, top, new, controversial, old, random, qa, live. + post_comments_sort: 'confidence', // "confidence" is the default sorting in Reddit. Must be one of: confidence, top, new, controversial, old, random, qa, live. valid_media_domains: ['preview.redd.it', 'external-preview.redd.it', 'i.redd.it', 'v.redd.it', 'a.thumbs.redditmedia.com', 'b.thumbs.redditmedia.com', 'thumbs.gfycat.com', 'i.ytimg.com'], reddit_api_error_text: `Seems like your instance is either blocked (e.g. due to API rate limiting), reddit is currently down, or your API key is expired and not renewd properly. This can also happen for other reasons.` }; diff --git a/dist/css/styles.css b/dist/css/styles.css index 6baa1ef..098e6fd 100644 --- a/dist/css/styles.css +++ b/dist/css/styles.css @@ -426,6 +426,10 @@ header .tabmenu li.active a { border-radius: 3px; font-weight: bold; } +.subreddit-listing { + margin-left: 15px; + margin-top: 8px; +} input[type="submit"], .btn { padding: 3px; diff --git a/views/subreddit.pug b/views/subreddit.pug index ff6eaf2..36050b9 100644 --- a/views/subreddit.pug +++ b/views/subreddit.pug @@ -129,3 +129,13 @@ html != unescape(sidebar_data.public_description_html) .description != unescape(sidebar_data.description_html) + else + if subreddit.includes('+') + .content + p These subreddits + - + let subreddits = subreddit.split('+') + ul(class="subreddit-listing") + each subreddit in subreddits + li + a(href="/r/" + subreddit + "") #{subreddit}