Skip to content

Instantly share code, notes, and snippets.

@christophergregory
Created February 13, 2014 19:45
Show Gist options
  • Select an option

  • Save christophergregory/8982396 to your computer and use it in GitHub Desktop.

Select an option

Save christophergregory/8982396 to your computer and use it in GitHub Desktop.
Split Shopify lists into columns
{% for link in linklists.footer-nav.links %}
{% cycle '<ul>', '' %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% cycle '', '</ul>' %}
{% capture needsEndingElement %}{% cycle 'yes', 'no' %}{% endcapture %}
{% endfor %}
{% if needsEndingElement == 'yes' %}
</ul>
{% endif %}
@christophergregory
Copy link
Copy Markdown
Author

Just update the cycles to acommodate larger columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment