Skip to content

Commit e8e91bd

Browse files
committed
Simplify release list on downloads page (en)
Stop distinguishing between "current", "previous", ... releases, simply list them under "stable releases". This allows iterating over the corresponding site variable (an array).
1 parent 30f4a8c commit e8e91bd

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

en/downloads/index.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,14 @@ See the [Installation][installation] page for details on building
3434
Ruby from source. If you have an issue compiling Ruby, consider using
3535
one of the third party tools mentioned above. They may help you.
3636

37-
* **Current stable:**
38-
[Ruby {{ site.downloads.stable[0].version }}]({{ site.downloads.stable[0].url.gz }})<br>
39-
sha256: {{ site.downloads.stable[0].sha256.gz }}
40-
41-
* **Previous stable:**
42-
[Ruby {{ site.downloads.stable[1].version }}]({{ site.downloads.stable[1].url.gz }})<br>
43-
sha256: {{ site.downloads.stable[1].sha256.gz }}
44-
45-
* **Old stable:**
46-
[Ruby {{ site.downloads.stable[2].version }}]({{ site.downloads.stable[2].url.gz }})<br>
47-
sha256: {{ site.downloads.stable[2].sha256.gz }}
37+
* **Stable releases:**{% for release in site.downloads.stable %}
38+
* [Ruby {{ release.version }}]({{ release.url.gz }})<br>
39+
sha256: {{ release.sha256.gz }}{% endfor %}
4840

4941
{% if site.downloads.security_maintenance %}
50-
* **In security maintenance phase (will EOL soon!):**
51-
[Ruby {{ site.downloads.security_maintenance[0].version }}]({{ site.downloads.security_maintenance[0].url.gz }})<br>
52-
sha256: {{ site.downloads.security_maintenance[0].sha256.gz }}
42+
* **In security maintenance phase (will EOL soon!):**{% for release in site.downloads.security_maintenance %}
43+
* [Ruby {{ release.version }}]({{ release.url.gz }})<br>
44+
sha256: {{ release.sha256.gz }}{% endfor %}
5345
{% endif %}
5446

5547
* **Snapshots:**

0 commit comments

Comments
 (0)