diff --git a/javascripts/discourse/components/discourse-category-banners.hbs b/javascripts/discourse/components/discourse-category-banners.hbs index a26c6be..275982a 100644 --- a/javascripts/discourse/components/discourse-category-banners.hbs +++ b/javascripts/discourse/components/discourse-category-banners.hbs @@ -9,6 +9,9 @@ > {{#if this.category}}
+ {{#if (and (theme-setting "show_category_logo") this.category.uploaded_logo.url)}} + + {{/if}}

{{#if (and (theme-setting "show_category_icon") this.category)}} {{#if this.hasIconComponent}} diff --git a/settings.yml b/settings.yml index aee6e4e..e6fc2fa 100644 --- a/settings.yml +++ b/settings.yml @@ -42,6 +42,10 @@ plugin_outlet: - "header-list-container-bottom" description: "Changes the position of the banner on the page." +show_category_logo: + default: false + description: Show category logo from a category's settings + show_category_icon: default: false description: Show category icon from the Discourse Category Icons component