generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reference.liquid
31 lines (31 loc) · 967 Bytes
/
reference.liquid
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
<div class="list-groups">
{% for content in data[1] %}
<div class="list-group col-md-6">
<table class="table-cv list-group-table">
<tbody>
<tr>
{% if content.icon %}
<td class="list-group-category-icon">
<i class="{{ content.icon }}"></i>
</td>
{% else %}
<td class="list-group-category-icon"></td>
{% endif %}
<!-- Calculate colspan number for category title -->
{% assign i = 1 %}
{% for item in content.items %}
{% assign i = i | plus: 1 %}
{% endfor %}
<td colspan="{{ i }}" class="list-group-category">{{ content.name }}</td>
</tr>
<tr>
<td></td>
<td class="list-group-name">
<b>{{ content.reference }}</b>
</td>
</tr>
</tbody>
</table>
</div>
{% endfor %}
</div>