Skip to content

Commit ea2d658

Browse files
committed
render scala version on download page, improve layout
1 parent 4d290a6 commit ea2d658

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

_layouts/download.html

+21-4
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,32 @@ <h2>Install Scala with <span style="font-weight: bold;">cs setup</span> (recomme
7676
</div>
7777
</div>
7878

79-
<div id="version-choice">
79+
<div id="version-choice">
80+
81+
{% for release in site.data.scala-releases %}
82+
{% assign version_slice = release.version | slice: 0, 2 %}
83+
{% if release.category == 'current_version' %}
84+
{% if version_slice == '3.' %}
85+
{% unless release.title contains "LTS" %}
86+
{% assign scala_next_release = release %}
87+
{% endunless %}
88+
{% if release.title contains "LTS" %}
89+
{% assign scala_lts_release = release %}
90+
{% endif %}
91+
{% endif %}
92+
{% endif %}
93+
{% endfor %}
94+
95+
8096
<h2>Which version of Scala should I choose?</h2>
8197
<p>There are 2 distribution lines of Scala 3:</p>
82-
<ul>
83-
<li><strong>Scala Next</strong> - The <strong>default</strong> to be used by most users, containing the latest features, bug fixes and improvements.</li>
84-
<li><strong>Scala LTS</strong> - Advised to be used for publishing <strong>libraries</strong>. (Some especially conservative users might also choose it over Scala Next.)</li>
98+
<ul style="list-style-type: disc; padding: 10px;">
99+
<li><strong>Scala Next</strong> currently {{ scala_next_release.version }} - The <strong>default</strong> to be used by most users, containing the latest features, bug fixes and improvements.</li>
100+
<li><strong>Scala LTS</strong> currently {{ scala_lts_release.version }} - Advised to be used for publishing <strong>libraries</strong>.</li>
85101
</ul>
86102
</div>
87103

104+
88105
<h2>Other ways to install Scala</h2>
89106
<div class="wrap">
90107
<a href="{{ site.baseurl }}/download/all.html" class="btn-download dl-find-all">

0 commit comments

Comments
 (0)