Skip to content

Instantly share code, notes, and snippets.

@levinmejia
Last active March 17, 2017 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save levinmejia/e55ed3de0ea704d3eeab to your computer and use it in GitHub Desktop.
Save levinmejia/e55ed3de0ea704d3eeab to your computer and use it in GitHub Desktop.
{% if product.tags.size > 0 %}
<div class="product-single__tags">
<p>Tags:
{% for tag in product.tags %}
{% assign tag_coll = '/collections/all/' | append: tag %}
{{ tag | capitalize | link_to: tag_coll }}{% unless forloop.last %},{% endunless %}
{% endfor %}
</p>
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment