Commit 33fb048 1 parent 3521847 commit 33fb048 Copy full SHA for 33fb048
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 24
24
{% assign latest_testing = site.downloads | where_exp: "download", "download.id == '/downloads/openttd-releases/latest'" | last %}
25
25
{% assign latest_nightly = site.downloads | where_exp: "download", "download.id == '/downloads/openttd-nightlies/latest'" | last %}
26
26
27
+ {% if latest_nightly.version == latest_stable.version or latest_nightly.version == latest_testing.version %}
28
+ {% assign nightly_version = latest_nightly.version %}
29
+ {% else %}
30
+ {% assign nightly_version = latest_nightly.version | split: "-" | slice: 0 %}
31
+ {% endif %}
32
+
27
33
< div id ="header-left "> </ div >
28
34
< div id ="header-right "> </ div >
29
35
@@ -36,7 +42,7 @@ <h5><a href="{{ site.baseurl }}{{ latest_stable.url }}">Download stable ({{ late
36
42
{% if latest_stable.date < latest _testing.date %}
37
43
< h5 > < a href ="{{ site.baseurl }}{{ latest_testing.url }} "> Download testing ({{ latest_testing.version }})</ a > </ h5 >
38
44
{% endif %}
39
- < h5 > < a href ="{{ site.baseurl }}{{ latest_nightly.url }} "> Download nightly ({{ latest_nightly.version | split: "-" | slice: 0 }})</ a > </ h5 >
45
+ < h5 > < a href ="{{ site.baseurl }}{{ latest_nightly.url }} "> Download nightly ({{ nightly_version }})</ a > </ h5 >
40
46
</ div >
41
47
< div id ="header-logo ">
42
48
< div id ="openttd-logo ">
You can’t perform that action at this time.
0 commit comments