Created
February 13, 2014 19:45
-
-
Save christophergregory/8982396 to your computer and use it in GitHub Desktop.
Split Shopify lists into columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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 %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just update the cycles to acommodate larger columns