This file contains hidden or 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
{% comment %} | |
This snippet displays "is-first" or "is-last" within a loop for class names | |
Usage: | |
{% for p in collection.products %} | |
<li class="{% include 'for-looper' %}"> ... </li> | |
{% endfor %} | |
Return: | |
no return |
This file contains hidden or 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
{% comment %} | |
This snippet lookes at its input string and returns either the input or a fallback image in a specific size, no path though | |
Usage: | |
{% assign newImageSize = "medium" %} (optional) | |
{% include 'make-image' with imageString %} | |
Return: | |
{{ newImageSize }} (either as input or fallback) |
This file contains hidden or 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
{% comment %} | |
This snippet takes HTML content from the Shopify editor and parses out the first image in all sizes. | |
Usage: | |
{% include 'get-first-image' with page.content %} | |
Return: | |
{{ FirstImagePico }} | |
{{ FirstImageIcon }} | |
{{ FirstImageThumb }} |
NewerOlder