Skip to content

Instantly share code, notes, and snippets.

@joeldrapper
Created January 25, 2016 23:50
Show Gist options
  • Save joeldrapper/9226a20b285070fc8079 to your computer and use it in GitHub Desktop.
Save joeldrapper/9226a20b285070fc8079 to your computer and use it in GitHub Desktop.
Widowfix for Shopify
{% assign words = widowfix | split: ' ' %}
{% for word in words %}{% if forloop.first %}{{word}}{% elsif forloop.last %} {{word}}{% else %} {{word}}{% endif %}{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment