-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangelog.html
More file actions
43 lines (42 loc) · 1.55 KB
/
changelog.html
File metadata and controls
43 lines (42 loc) · 1.55 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
38
39
40
41
42
43
---
layout: default
title: Changelog
---
{% for entry in site.data.versions %}
<h2 id="{{ entry.version }}">
{% if entry.url %}<a href="{{ entry.url }}">{% endif %}
Version {{ entry.version }}
{% if entry.url %}</a>{% endif %}
<small>// Minecraft {{ entry.minecraft }}
{% if entry.api %}(API version {{ entry.api }}){% endif %}
</small>
</h2>
{% assign changes = "" | split: "" %}
{% assign things = site.docs | group_by: "type" %}
{% for changeType in site.data.banner %}
{% assign first = true %}
{% for group in things %}
{% for thing in group.items %}
{% for change in thing.changelog %}
{% if change.version == entry.version and change.type == changeType.type %}
{% if first %}
{{ changeType.type }}
<ul>
{% assign first = false %}
{% endif %}
<li>
{{ thing.type }}
<a href="{{ thing.url | relative_url }}">{{ thing.name | escape }}</a>
{% if change.message %}
// {{ change.message | markdownify }}
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% unless first %}
</ul>
{% endunless %}
{% endfor %}
{% endfor %}