Skip to content

Commit

Permalink
fix: shop/category banner missing sizes (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohnj877 authored Mar 28, 2024
1 parent 412992a commit 27b6344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme/templates/store/category.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
{% if categoryImage %}
{{ include('partials/components/banner', {
bannerImage: { uri: categoryImage.absolute_url, urls: categoryImage.absolute_urls },
bannerSizes: { sm: 640, lg: 1280 },
bannerAlt: category.name,
}) }}
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions theme/templates/store/shop.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{% set imageSrc = 'images/home-banner.png'|asset_url %}
{{ include('partials/components/banner', {
bannerImage: { uri: imageSrc, urls: { 640: imageSrc ~ '?width=640', 1280: imageSrc ~ '?width=1280' } },
bannerSizes: { sm: 640, lg: 1280 },
bannerAlt: 'templates.store.shop.headings.shop'|localize,
}) }}

Expand Down

0 comments on commit 27b6344

Please sign in to comment.