/
gymbags.html
46 lines (38 loc) · 1.2 KB
/
gymbags.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: default
title: gymbags
---
{% for product_hash in site.data.products %}
{% assign product = product_hash[1] %}
<div class="row">
{% if product.category == 'gymbag' %}
{% capture count %}{{ count | plus: '1' }}{% endcapture %}
{% for type in product.types %}
{% assign mod = count | modulo:3 %}
{% capture count %}{{ count | plus: '1' }}{% endcapture %}
{% for image in type.images %}
{% if forloop.first %}
<div class="col-md-4 spacer">
<div class="home-image">
<a href="{{product.producturl}}">
<img src="{{image.url}}">
<h2>{{product.productname}}
<span class="producttype" style="color: {{type.color}};">{{type.name}}</span>
<span class="productsize">[{{type.size}}]</span>
</h2>
</a>
</div>
</div>
{% endif %}
{% endfor %}
{% if mod == 0 %}
</div>
<div class="row spacer"></div>
{% endif %}
{% endfor %}
{% if forloop.last %}
</div>
{% endif %}
{% endif %}
{% endfor %}
<div class="row"> </div>