- Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathdownloads-list.html
19 lines (19 loc) · 657 Bytes
/
downloads-list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% for top in (0..3) reversed %}
{% for major in (0..20) reversed %}
{% assign possibleVersionShort = top | append:'.' | append:major %}
{% assign sz = possibleVersionShort | size %}
{% if 3 == sz %}
{% assign possibleVersion = possibleVersionShort | append:'.' %}
{% else %}
{% assign possibleVersion = possibleVersionShort %}
{% endif %}
{% for page in site.downloads %}
{% assign releaseVersion = page.release_version | truncate:4, '' %}
{% if releaseVersion == possibleVersion %}
<div>
<ahref="{{ page.url }}">{{ page.title }}</a>
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}