-
Notifications
You must be signed in to change notification settings - Fork 0
/
set.html
48 lines (45 loc) · 1.96 KB
/
set.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
---
title: Set Stock
layout: stock
permalink: /set/
search: true
filter: true
---
<div class="wrapper">
<div class="category">
<ul class="category-list">
{% assign cats_ordered = site.data.categories[0].set | sort: "name" %}
{% for category in cats_ordered %}
<li>
<div class="category-item set-type-{{ category.name | slugify }}" id="{{ category.name | slugify }}">{{ category.name }}</div>
</li>
{% endfor %}
</ul>
</div>
<div class="set">
<ul class="set-list" id="item-list">
{% assign set_ordered = site.data.set | sort: "Name" | sort: "Category" %}
{% for set in set_ordered %}
<li>
<div class="set-item set-type-{{ set.Category | slugify }}" title="{{ set.category }}">
{% if set.Image %}
<div class="set-image">
<img src="{{ site.baseurl }}/images/set/{{ set.Category | slugify }}/{{ set.Image }}" />
</div>
{% else %}
<div class="set-image" style="background:inherit;padding: 1em">
<i class="fa fa-fw fa-2x fa-cube"></i>
</div>
{% endif %}
<h2 class="set-title"><strong>{{ set.Name | capitalize }}</strong> {% if set.Material %}({{ set.Material }}){% endif %}</h2>
<span class="category">{{ set.Category }}</span>
{% if set.Notes %}<p><em>{{ set.Notes | markdownify }}</em></p>{% endif %}
{% if set.Measurements %}<p><i class="fa fa-fw fa-ruler-combined"></i> {{ set.Measurements }}</p>{% endif %}
{% if set.Color or set.Paint %}<p>{% if set.Color %}<i class="fa fa-fw fa-palette"></i> {{ set.Color | capitalize }}{% endif %} {% if set.Paint == true %}<i class="fa fa-paint-brush fa-fw fa-sm" title="You may repaint this item."></i>{% endif %}</p>{% endif %}
{% if set.Stock %}<p><i class="fa fa-fw fa-tags"></i> {{ set.Stock }} in stock</p>{% endif %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>