Rename thumbnails to show-thumbnails
This commit is contained in:
parent
9c5b6045af
commit
c97171883c
4 changed files with 5 additions and 5 deletions
|
|
@ -5,7 +5,7 @@
|
|||
{{ range $i, $post := .Posts }}
|
||||
<li {{ if shouldCollapse $i $.CollapseAfter }}class="list-collapsible-item" style="--animation-delay: {{ itemAnimationDelay $i $.CollapseAfter }};"{{ end }}>
|
||||
<div class="forum-post-list-item thumbnail-container">
|
||||
{{ if $.Thumbnails }}
|
||||
{{ if $.ShowThumbnails }}
|
||||
{{ if ne $post.ThumbnailUrl "" }}
|
||||
<img class="forum-post-list-thumbnail thumbnail" src="{{ $post.ThumbnailUrl }}" alt="" loading="lazy">
|
||||
{{ else if $post.HasTargetUrl }}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ type HackerNews struct {
|
|||
Limit int `yaml:"limit"`
|
||||
CollapseAfter int `yaml:"collapse-after"`
|
||||
CommentsUrlTemplate string `yaml:"comments-url-template"`
|
||||
Thumbnails bool `yaml:"-"`
|
||||
ShowThumbnails bool `yaml:"-"`
|
||||
}
|
||||
|
||||
func (widget *HackerNews) Initialize() error {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ type Reddit struct {
|
|||
Posts feed.ForumPosts `yaml:"-"`
|
||||
Subreddit string `yaml:"subreddit"`
|
||||
Style string `yaml:"style"`
|
||||
Thumbnails bool `yaml:"thumbnails"`
|
||||
ShowThumbnails bool `yaml:"show-thumbnails"`
|
||||
CommentsUrlTemplate string `yaml:"comments-url-template"`
|
||||
Limit int `yaml:"limit"`
|
||||
CollapseAfter int `yaml:"collapse-after"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue