mirror of
https://github.com/discourse/discourse-category-banners
synced 2025-03-09 13:02:25 +00:00
This commit moves the description for the theme's settings into `locales/en.yml`. This follows our theme's best practice listed in https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867
56 lines
1004 B
YAML
56 lines
1004 B
YAML
show_description:
|
|
default: true
|
|
|
|
show_mobile:
|
|
default: true
|
|
|
|
show_subcategory:
|
|
default: true
|
|
|
|
hide_if_no_description:
|
|
default: true
|
|
|
|
show_category_logo:
|
|
default: false
|
|
|
|
align_text:
|
|
default: center
|
|
type: "enum"
|
|
choices:
|
|
- center
|
|
- left
|
|
- right
|
|
|
|
exceptions:
|
|
default: ""
|
|
type: list
|
|
list_type: simple
|
|
|
|
categories:
|
|
default: ""
|
|
type: list
|
|
description: |
|
|
Banner will only show for these categories. Format as <code>name:target</code> (e.g., <code>staff:all</code>).
|
|
Accepted targets:
|
|
<ul>
|
|
<li> all - named category and subcategories (default);
|
|
<li> no_sub - only the named category;
|
|
<li> only_sub - only subcategories of the named category.
|
|
</ul>
|
|
|
|
plugin_outlet:
|
|
default: "below-site-header"
|
|
type: "enum"
|
|
choices:
|
|
- "below-site-header"
|
|
- "above-site-header"
|
|
- "above-main-container"
|
|
- "header-list-container-bottom"
|
|
refresh: true
|
|
|
|
show_category_icon:
|
|
default: false
|
|
|
|
override_category_icon_color:
|
|
default: false
|