-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathmerch.html
More file actions
37 lines (34 loc) · 1.05 KB
/
merch.html
File metadata and controls
37 lines (34 loc) · 1.05 KB
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
---
layout: page
title: Merch
styles:
- /css/merch-listing.css
- /css/fadein.css
favicon: /favicon.ico
---
<div class="merch-container">
<h1>Merch</h1>
{% if site.merch.size == 0 %}
<p>There's nothing here yet...</p>
{% endif %}
<div class="fadein-container">
{% for merch in site.merch %}
<a class="merch-preview fadein" style="--child-index: {{ forloop.index }};" href="{{ merch.url | relative_url }}">
{% if merch.thumbnail %}
<img alt="{{ post.title }}" class="merch-thumbnail" src="{{ merch.thumbnail | relative_url }}">
{% endif %}
<div class="merch-details">
<h2 class="merch-title">{{ merch.title }}</h2>
<div class="merch-excerpt">
<p>{{ merch.excerpt | strip_html }}</p>
</div>
<!-- todo: figure out something better to put here -->
<!-- {% if merch.options %}
{% assign options = merch.options | sort: 'price' %}
<p class="merch-price">from £{{ options[0]['price'] }}</h2>
{% endif %} -->
</div>
</a>
{% endfor %}
</div>
</div>