DEV: Improve plugin outlets in category-banner component (#64)

Add category argument to plugin outlet to make it more usable for customization, create new outlet 'after-description'
This commit is contained in:
overgrow 2024-08-27 00:44:55 +02:00 committed by GitHub
parent cfb96a9703
commit f670596c6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -25,13 +25,14 @@
{{d-icon "lock"}}
{{/if}}
{{this.category.name}}
<PluginOutlet @name="category-banners-after-title" />
<PluginOutlet @name="category-banners-after-title" @outletArgs={{hash category=this.category}} />
</h1>
{{#if this.displayCategoryDescription}}
<div class="category-title-description">
<div class="cooked">
{{html-safe this.category.description}}
<PluginOutlet @name="category-banners-after-description" @outletArgs={{hash category=this.category}} />
</div>
</div>
{{/if}}