-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
52 lines (52 loc) · 1.72 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
---
layout: division
id: index
js: index
---
<div class="search-bar">
<input class="search" type="text" placeholder="Search">
</div>
<div class="build-container">
{% assign t = '|' | split: '|' %}
{% assign s = site.pages | where: 'layout', 'build' %}
{% for f in s %}
{% assign d = f.date | date: '%s' %}
{% assign t = t | push: d %}
{% endfor %}
{% assign t = t | uniq | sort | reverse %}
{% assign b = '|' | split: '|' %}
{% for i in t %}
{% assign d = i | date: '%d/%m/%Y' %}
{% assign c = s | where: 'date', d %}
{% for e in c %}
{% assign b = b | push: e %}
{% endfor %}
{% endfor %}
{% assign a = '1.8,1.7,1.6' | split: ',' %}
{% for p in a %}
{% assign n = p | plus: 0 %}
<h1 class="divider">Patch {{p}}</h1>
<div class="build-list">
{% for f in b %}
{% if f.patch == n %}
<a href="{{f.url | remove: '.html'}}">
<div class="list-item">
<div class="title">{{f.title}}</div>
<div class="info">
Author: <span class="author">{{f.author}}</span>
<span class="date">Last updated: {{f.date}}</span>
</div>
{% if f.tags %}
<div class="tags">
{% for t in f.tags %}
<span class="tag">{{t}}</span>
{% endfor %}
</div>
{% endif %}
</div>
</a>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>