This Discourse component offers a customizable jumbotron for category pages. Enhance your forum's category pages by displaying detailed banners with various options, including descriptions, logos, and more.
- Dynamic Routes: Customize the jumbotron display on different routes.
- Category Descriptions: Option to display category descriptions.
- Category Logos: Show category logos in the jumbotron.
- Nested Category Levels: Control the display of the jumbotron based on category nesting levels.
- Category Exceptions: Exclude specific categories from displaying jumbotrons.
- Flexible Positioning: Choose from various positions to display the jumbotron.
- Category Icons: Incorporate icons from the Discourse Category Icons component.
- Visibility of Lock Icon: Show a lock icon for categories with read restrictions.
- Layout Customization: Adjust the flex direction, content justification, and item alignment.
- Logo Size Options: Control the size of the category logo within the jumbotron.
- Color Layout Choices: Select different color layouts for the jumbotron.
Bordered color layout with logo aligned on the end of the container
Bordered color layout with logo aligned on the start of the container
Fill color layout
Fill color layout on a different plugin outlet
Fill color layout centered without logo
Fill color layout centered with a big logo
-
routes
- Default:
discovery
- Type:
list
- Default:
-
show_description
- Default:
true
- Description: Show description from "About This Category" post.
- Default:
-
show_category_logo
- Default:
true
- Description: Show category logo.
- Default:
-
max_level
- Default:
3
- Min:
0
- Max:
4
- Description: Maximum category nesting level to show the jumbotron.
- Default:
-
hide_if_no_description
- Default:
true
- Description: Hide banners if category description is not set.
- Default:
-
exceptions
- Default: ``
- Type:
list
- List Type:
simple
- Description: Banner will not show for these category NAMES.
-
plugin_outlet
- Default:
above-main-container
- Type:
enum
- Choices:
below-site-header
above-site-header
above-main-container
header-list-container-bottom
- Description: Changes the position of the jumbotron on the page.
- Refresh:
true
- Default:
-
show_category_icon
- Default:
true
- Description: Show category icon from the Discourse Category Icons component.
- Default:
-
show_lock_icon
- Default:
true
- Description: Show a lock icon for categories with read restrictions.
- Default:
-
flex_direction
- Default:
row
- Type:
enum
- Choices:
column
column-reverse
row
row-reverse
- Description: Changes the direction of the jumbotron items.
- Default:
-
justify_content
- Default:
start
- Type:
enum
- Choices:
start
center
end
- Description: Changes the alignment of the jumbotron items on the main Axis.
- Default:
-
align_items
- Default:
center
- Type:
enum
- Choices:
start
center
end
- Description: Changes the alignment of the jumbotron items on the Cross Axis.
- Default:
-
logo_size
- Default:
medium
- Type:
enum
- Choices:
small
medium
large
original
- Description: Constraints the width of the logo.
- Default:
-
color_layout
- Default:
border
- Type:
enum
- Choices:
none
border
fill
- Description: Defines the color layout of the jumbotron.
- Default:
Follow these steps to add this component to your Discourse forum:
- Navigate to
Admin
>Customize
>Themes
. - Click on
Install
. - Select
From a git repository
. - Input the URL of this repository:
https://github.com/ICIJ/discourse-category-jumbotron
- Click on
Install
.
Your contributions are welcome! Please feel free to submit pull requests or issues on the repository to improve the component or fix problems.
This project is licensed under the MIT License.