Skip to content

Instantly share code, notes, and snippets.

@stan-voo
stan-voo / gist:9cff08b9ef2dfdba0833
Created February 28, 2016 11:22 — forked from kyleaparker/gist:6c956128048bd1a69821
[Shopify] Three level collection navigation using tags
<ul>
{% comment %}A linklist should be created called "Collections" containing each of the "top" level collections{% endcomment %}
{% for link in linklists.collections.links %}
{% assign col = link.object %}
<li class="{% if col.handle == collection.handle %}active{% endif %}">
<a href="{{ link.url }}"><span>{{ link.title }}</span></a>
{% if col.all_tags.size > 0 %}
<ul>
{% assign tag_index = 0 %}
{% assign current_tag = "" %}