Skip to content

Instantly share code, notes, and snippets.

@icegulch icegulch/liquid-loop
Created Jan 11, 2014

Embed
What would you like to do?
<ul class="product-listing">
## LOOP ONE
<li class="bakery-shop-collections">
<h2>{{linklists.bakery-shop-collections.title}}</h2>
<ul>
{% for link in linklists.bakery-shop-collections.links %}
<li{% if link.active %} class="active"{% endif %}>
<a href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
</li>
## LOOP TWO
{% for product in products %}
<li>
<a href="{{product.url}}" class="product-image">
{% if product.featured_image %}
<img src="{{ product.featured_image | product_img_url: 'large' }}" />
{% else %}
{{ 'placeholder.gif' | asset_url | img_tag }}
{% endif %}
</a>
<h3><a href="{{product.url}}">{{product.title}}</a></h3>
</li>
{% endfor %}
</ul><!-- eo product-listing -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.