Skip to content

Instantly share code, notes, and snippets.

@Raistlfiren
Last active February 2, 2017 17:14
Show Gist options
  • Save Raistlfiren/58d4af73432bc3cbdfb1697415230f39 to your computer and use it in GitHub Desktop.
Save Raistlfiren/58d4af73432bc3cbdfb1697415230f39 to your computer and use it in GitHub Desktop.
<section id="Services" class="light-wrapper">
<div class="container inner">
{% setcontent categories = 'productcategories' orderby 'id' %}
{% for columns in categories|batch(3) %}
<div class="row" style="margin-bottom:20px;">
{% for category in columns %}
<div class="col-md-4">
<div class="Headline-Text">
<h4>{{ category.title }}</h4>
</div>
<div class="Bullets">
<ul class="list prim list-Play">
{% set products = category.related('products') %}
{% for product in products|order('title') %}
<li>{{ product.title }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment