/
index.html
44 lines (36 loc) · 1.15 KB
/
index.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
---
layout: default
title: index
---
{% for post in site.posts %}
{% for product_hash in site.data.products %}
{% assign product = product_hash[1] %}
{% if product.ident == post.ident %}
{% if forloop.first %}
<div class="row">
{% endif %}
{% for type in product.types %}
{% assign mod = forloop.index | modulo:3 %}
{% 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>
{% if type.size %}<span class="productsize">[{{type.size}}]</span>{% endif %}
</h2>
</a>
</div>
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% if forloop.last %}
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<div class="row"> </div>