Skip to content

Commit

Permalink
Use category cover
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlavtox authored Sep 16, 2024
1 parent 9b81ed2 commit ad3f1ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/catalog/_partials/category-header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
{if $category.description}
<div id="category-description" class="rich-text mb-4">{$category.description nofilter}</div>
{/if}
{if !empty($category.image.large.url)}
{if !empty($category.cover.large.url)}
<div class="category-cover mb-4">
<img src="{$category.image.large.url}"
alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}"
<img src="{$category.cover.large.url}"
alt="{if !empty($category.cover.legend)}{$category.cover.legend}{else}{$category.name}{/if}"
fetchpriority="high"
class="img-fluid"
width="{$category.image.large.width}"
height="{$category.image.large.height}">
width="{$category.cover.large.width}"
height="{$category.cover.large.height}">
</div>
{/if}
</div>
Expand Down

0 comments on commit ad3f1ae

Please sign in to comment.