From c97171883cecce96302feb3cd8919a185fff2855 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Thu, 2 May 2024 18:45:15 +0100 Subject: [PATCH] Rename thumbnails to show-thumbnails --- docs/configuration.md | 4 ++-- internal/assets/templates/forum-posts.html | 2 +- internal/widget/hacker-news.go | 2 +- internal/widget/reddit.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 1e3997d..b8db5ba 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -511,7 +511,7 @@ Example: | ---- | ---- | -------- | ------- | | subreddit | string | yes | | | style | string | no | vertical-list | -| thumbnails | boolean | no | false | +| show-thumbnails | boolean | no | false | | limit | integer | no | 15 | | collapse-after | integer | no | 5 | | comments-url-template | string | no | https://www.reddit.com/{POST-PATH} | @@ -534,7 +534,7 @@ Used to change the appearance of the widget. Possible values are `vertical-list` ![](images/reddit-widget-vertical-cards-preview.png) -##### `thumbnails` +##### `show-thumbnails` Shows or hides thumbnails next to the post. This only works if the `style` is `vertical-list`. Preview: ![](images/reddit-widget-vertical-list-thumbnails.png) diff --git a/internal/assets/templates/forum-posts.html b/internal/assets/templates/forum-posts.html index aaa377e..7c9d188 100644 --- a/internal/assets/templates/forum-posts.html +++ b/internal/assets/templates/forum-posts.html @@ -5,7 +5,7 @@ {{ range $i, $post := .Posts }}