mirror of
https://github.com/Xevion/glance.git
synced 2025-12-10 02:07:20 -06:00
Allow showing thumbnails for reddit posts
This commit is contained in:
@@ -511,6 +511,7 @@ Example:
|
||||
| ---- | ---- | -------- | ------- |
|
||||
| subreddit | string | yes | |
|
||||
| style | string | no | vertical-list |
|
||||
| thumbnails | boolean | no | false |
|
||||
| limit | integer | no | 15 |
|
||||
| collapse-after | integer | no | 5 |
|
||||
| comments-url-template | string | no | https://www.reddit.com/{POST-PATH} |
|
||||
@@ -533,6 +534,15 @@ Used to change the appearance of the widget. Possible values are `vertical-list`
|
||||
|
||||

|
||||
|
||||
##### `thumbnails`
|
||||
Shows or hides thumbnails next to the post. This only works if the `style` is `vertical-list`. Preview:
|
||||
|
||||

|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> Thumbnails don't work for some subreddits due to Reddit's API not returning the thumbnail URL. No workaround for this yet.
|
||||
|
||||
##### `limit`
|
||||
The maximum number of posts to show.
|
||||
|
||||
|
||||
BIN
docs/images/reddit-widget-vertical-list-thumbnails.png
Normal file
BIN
docs/images/reddit-widget-vertical-list-thumbnails.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user