Skip to content

Commit

Permalink
product-main
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt-beeclever committed Oct 3, 2024
1 parent 473bbe9 commit 268dc36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sections/collection-main.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<div class="grid" style="--columns: 4; --gap: 30px;">
{%- for product in collection.products -%}
<div class="flex col product-grid-item">
{%- assign first_variant = product.first_available_variant -%}
<h5>{{ product.title }}</h5>
<a href="{{product.url}}" class="flex col">
<a href="{{ first_variant.url | within: collection }}" class="flex col">
{%- render 'image-element', image: product.featured_image, aspect_ratio: 1, fit: 'cover', sizes: '25vw' -%}
</a>
<div class="flex row wrap">
Expand Down

0 comments on commit 268dc36

Please sign in to comment.