mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 02:59:26 +01:00
add multisubreddit listing
This commit is contained in:
parent
92a4890cd4
commit
c4098a418f
@ -28,7 +28,7 @@ const config = {
|
|||||||
searches: 600,
|
searches: 600,
|
||||||
sidebar: 60 * 60 * 24 * 7 // 7 days
|
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'],
|
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.`
|
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.`
|
||||||
};
|
};
|
||||||
|
4
dist/css/styles.css
vendored
4
dist/css/styles.css
vendored
@ -426,6 +426,10 @@ header .tabmenu li.active a {
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.subreddit-listing {
|
||||||
|
margin-left: 15px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
input[type="submit"],
|
input[type="submit"],
|
||||||
.btn {
|
.btn {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
|
@ -129,3 +129,13 @@ html
|
|||||||
!= unescape(sidebar_data.public_description_html)
|
!= unescape(sidebar_data.public_description_html)
|
||||||
.description
|
.description
|
||||||
!= unescape(sidebar_data.description_html)
|
!= 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}
|
||||||
|
Loading…
Reference in New Issue
Block a user