-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (100 loc) · 5.89 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
layout: default
slug: home
---
{%- assign skins = site.data.skins | sort: "name" -%}
{%- for skin in skins -%}
{%- capture skinImage %}{{ skin.hero }}_{{ skin.season }}_{{ skin.name }}{% endcapture -%}
{%- assign skinImage = skinImage | replace: ":", "" | replace: ".", "" | replace: " ", "-" -%}
{%- assign skinID = skinImage | replace: "_", "-" | prepend: "skin-" -%}
{%- assign skinAvailabilities = skin.availabilities | reverse %}
<article id="{{ skinID }}" class="skin" data-name="{{ skin.name }}" data-hero="{{ skin.hero }}" data-season="{{ skin.season }}" data-availability-start="{{ skinAvailabilities.first.period.start }}" data-availability-end="{{ skinAvailabilities.first.period.end }}" data-source="{{ skinAvailabilities.first.source }}" data-cost="{{ skinAvailabilities.first.cost }}" data-hidden hidden>
<header>
<h2>{{ skin.name }}</h2>
<p>{{ skin.hero }} (<time>{{ skin.season }}</time>)</p>
</header>
<div class="wrapper">
<main>
<p><button type="button" data-action="skin.expand" data-target="#{{ skinID }}" aria-controls="{{ skinID }}" aria-expanded="false" aria-label="Show information"><img src="images/{{ skinImage }}.webp" alt="" width="600" height="600" loading="lazy"/></button></p>
<section id="{{ skinID }}_info" class="skin-info" data-hidden hidden>
<header>
<h3>Information</h3>
<p><button type="button" class="icon icon-close" data-action="skin.collapse" data-target="#{{ skinID }}" aria-controls="{{ skinID }}" aria-expanded="false" aria-label="Hide information"></button></p>
</header>
<div class="wrapper">
<main>
<section id="{{ skinID }}_info_general" class="skin-info-category">
<header>
<h4>General</h4>
</header>
<div class="wrapper">
<main>
<dl>
<dt>Name</dt>
<dd>{{ skin.name }}</dd>
<dt>Hero</dt>
<dd>{{ skin.hero }}</dd>
</dl>
</main>
<footer></footer>
</div>
</section>
<section id="{{ skinID }}_info_background" class="skin-info-category">
<header>
<h4>Background</h4>
</header>
<div class="wrapper">
<main>
<dl>
<dt>Season</dt>
<dd>{{ skin.season }}</dd>
<dt>Event</dt>
<dd>{{ skin.event }}</dd>
<dt>Themes</dt>
<dd>{{ skin.themes | join: ", " }}</dd>
</dl>
</main>
<footer></footer>
</div>
</section>
{%- if skin.article -%}
{%- assign article = skin.article -%}
<section id="{{ skinID }}_info_article" class="skin-info-category">
<header>
<h4>Article</h4>
</header>
<div class="wrapper">
<main>
<p><a href="{% if article.archiveURL %}{{ article.archiveURL }}{% else %}{{ article.url }}{% endif %}" target="_blank" rel="external noopener"{% if article.archiveURL %} class="archived" data-archived-url="{{ article.url}}"{% endif %}{% if article.title %} title="{{ article.title }}"{% endif %}>{% if article.title %}{{ article.title }}{% else %}{{ article.url }}{% endif %} [<time datetime="{% if article.datetime %}{{ article.datetime }}{% else %}{{ article.date }}{% endif %}"><span class="hyphen-nobreak">{{ article.date }}</span></time>]{% if article.archiveURL %}[Archived]{% endif %}</a></p>
</main>
<footer></footer>
</div>
</section>
{%- endif -%}
<section id="{{ skinID }}_info_availability" class="skin-info-category">
<header>
<h4>Availability</span></h4>
</header>
<div class="wrapper">
<main>
<dl>
{%- for availability in skinAvailabilities %}
<dt class="double-row-header{% unless forloop.first %} historic{% endunless %}"><time class="start" datetime="{{ availability.period.start | default: "" }}"><span class="hyphen-nobreak{% if availability.period.startNote %} note" data-tooltip="{{ availability.period.startNote}}" tabindex="0"{% endif %}">{{ availability.period.start | default: "unknown" }}</span></time> – <time class="end" datetime="{{ availability.period.end | default: "" }}"><span class="hyphen-nobreak{% if availability.period.endNote %} note" data-tooltip="{{ availability.period.endNote}}" tabindex="0"{% endif %}">{{ availability.period.end | default: "unknown" }}</span></time></dt>
<dd{% unless forloop.first %} class="historic"{% endunless %}>{{ availability.source }}, {{ availability.cost }} <img class="owl-token" title="OWL Token" src="images/owl-token.svg" alt="OWL Tokens" width="220" height="220" loading="lazy"/><br/><small class="references">References: {% for reference in availability.references %}<a href="{% if reference.archiveURL %}{{ reference.archiveURL }}{% else %}{{ reference.url }}{% endif %}" target="_blank" rel="external noopener" class="reference{% if reference.archiveURL %} archived" data-archived-url="{{ reference.url }}{% endif %}"{% if reference.title %} title="{{ reference.title }} [{{ reference.date }}]{% if reference.archiveURL %}[Archived]{% endif %}"{% endif %} data-datetime="{% if reference.datetime %}{{ reference.datetime }}{% else %}{{ reference.date }}{% endif %}"><sup>{{ forloop.index }}</sup></a>{% unless forloop.last %}, {% endunless %}{% endfor %}</small></dd>
{%- endfor %}
</dl>
</main>
<footer></footer>
</div>
</section>
</main>
<footer></footer>
</div>
</section>
</main>
<footer>
<p><span>{{ skinAvailabilities.first.cost }}</span> <img class="owl-token" title="OWL Token" src="images/owl-token.svg" alt="OWL Tokens" width="220" height="220" loading="lazy"/></p>
</footer>
</div>
</article>
{%- endfor %}