forked from CloudCannon/fur-jekyll-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproducts.html
76 lines (73 loc) · 3.49 KB
/
products.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
title: Products - Original merchandise by De Mort
description: Shop original, quirky and unique merchandise, prints and t-shirts by freelance artist Fleur Greenfield.
hero: Products
subtitle: Original merchandise by De Mort
---
<div class="content" id="products">
<section>
<div class="container">
<div class="intro editable">
<h3>Got a lot of good things on sale, stranger</h3>
<p>See a design that you really love? We have a range of merchandise prints and tees on our Etsy shop. Select a product below to view and purchase on Etsy.</p>
<p>If you'd like one of our other designs as a print, bag or as clothing, <a href="/contact/" title="Contact Us">get in touch</a>.</p>
</div>
<p class="editor-link" style="text-align: center;"><a href="cloudcannon:collections/_products" class="btn"><strong>✎</strong> Manage products</a></p>
<ul class="product-list">
{% assign current-products = site.products | where: "product-state","Current" %}
{% assign resurrected-products = site.products | where: "product-state","Resurrected" %}
{% assign alive-products = current-products | concat: resurrected-products %}
{% for product in alive-products %}
<li>
<div class="styles">
<div class="style">
<a href="{{ product.url }}">
<img src="{{ product.image }}" alt="{{ product.name }}">
</a>
</div>
</div>
<div class="product-details">
<h4><a href="{{ product.url }}">{{ product.name }} {{ product.product-type}}</a></h4>
{% if product.product-state == "Resurrected" %}
<span class="product-status-resurrected">Resurrected!</span>
{% endif %}
<div class="product-description">
{{ product.description_markdown | truncate: 45 | markdownify }}
</div>
<p>£{{ product.price }}</p>
</div>
</li>
{% endfor %}
<li></li>
<li></li>
<li></li>
</ul>
<h3>The Afterlife</h3>
<p>All good things come to an end. Here's some of our older designs.</p>
<ul class="product-list">
{% assign retired-products = site.products | where: "product-state","Retired" %}
{% for product in retired-products %}
<li>
<div class="styles">
<div class="style">
<a href="{{ product.url}}">
<img src="{{ product.image }}" alt="{{ product.name }}">
</a>
</div>
</div>
{% comment %} include product-styles.html product=product {% endcomment %}
<div class="product-details">
<h4><a href="{{ product.url }}">{{ product.name }} {{ product.product-type}}</a></h4>
{% if product.product-state == "Retired" %}
<span class="product-status-retired">R.I.P.</span>
{% endif %}
<div class="product-description">
{{ product.description_markdown | truncate: 45 | markdownify }}
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</section>
</div>