Skip to content

Instantly share code, notes, and snippets.

@keirwhitaker
Created July 11, 2017 09:36
Show Gist options
  • Save keirwhitaker/77340100f0c0a376d008a60a6b2dbb5a to your computer and use it in GitHub Desktop.
Save keirwhitaker/77340100f0c0a376d008a60a6b2dbb5a to your computer and use it in GitHub Desktop.
Extract of promotions.liquid #1
{% for block in section.blocks %}
{% if block.type == "promo-box" %}
<h3>{{ block.settings.title }}</h3>
<p>{{ block.settings.description }}</p>
{% elsif block.type == "promo-image" %}
<img src="{{ block.settings.promo-image | img_url: '800x' }}" />
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment