Skip to content

Instantly share code, notes, and snippets.

@icegulch
Created January 11, 2014 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icegulch/8373741 to your computer and use it in GitHub Desktop.
Save icegulch/8373741 to your computer and use it in GitHub Desktop.
<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