/
toiletry-bags.html
54 lines (42 loc) · 1.4 KB
/
toiletry-bags.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
47
48
49
50
51
52
53
54
---
layout: default
title: toiletry-bags
---
{% for post in site.posts %}
{% for product_hash in site.data.products %}
{% assign product = product_hash[1] %}
{% if product.ident == post.ident %}
{% if product.category == 'toiletry-bags'%}
{% capture count %}{{ count | plus: '1' }}{% endcapture %}
{% if count == "1" %}
<div class="row">
{% endif %}
{% for type in product.types %}
{% if count == 1 %}
<div class="row">
{% endif %}
{% 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}}#{{ type.cssclass }}">
<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 %}
{% endfor %}
{% if forloop.last %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<div class="row"> </div>