Skip to content

Commit

Permalink
Adjusted Featured Collection placeholders to work with any number of …
Browse files Browse the repository at this point in the history
…desktop columns (#3182)

* Adjusted featured collection placeholders to work with any number of desktop columns
  • Loading branch information
tyleralsbury authored Jan 9, 2024
1 parent 8ef242b commit e6a8f03
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sections/featured-collection.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,21 @@
%}
</li>
{%- else -%}
{%- for i in (1..4) -%}
{%- for i in (1..section.settings.columns_desktop) -%}
<li
class="grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
{% if settings.animations_reveal_on_scroll %}
data-cascade
style="--animation-order: {{ forloop.index }};"
{% endif %}
>
{%- assign placeholder_image = 'product-apparel-' | append: forloop.rindex -%}
{% liquid
assign ridx = forloop.rindex
if ridx == 5
assign ridx = 1
endif
%}
{%- assign placeholder_image = 'product-apparel-' | append: ridx -%}
{% render 'card-product',
show_vendor: section.settings.show_vendor,
media_aspect_ratio: section.settings.image_ratio,
Expand Down

0 comments on commit e6a8f03

Please sign in to comment.