Skip to content

Commit

Permalink
better organize versions on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Jun 24, 2024
1 parent 66af60f commit dd24130
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
28 changes: 21 additions & 7 deletions _layouts/frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,31 @@ <h2>{{page.headerSubtitle}}</h2>
<div class="button-row__container">
<div class="button-row">
{% for release in site.data.scala-releases %}
{% if release.category == "current_version" %}
<a href="/download/{{ release.version }}.html" class="button">
Scala {{ release.version }}
</a>
{% assign version_slice = release.version | slice: 0, 2 %}
{% if release.category == 'current_version' %}
{% if version_slice == '3.' %}
{% unless release.title contains "LTS" %}
<a href="/download/{{ release.version }}.html" class="button">
Latest Release: {{ release.version }}
</a>
{% endunless %}
{% if release.title contains "LTS" %}
<a href="/download/{{ release.version }}.html" class="button">
LTS Release: {{ release.version }}
</a>
{% endif %}
{% else %}
{% assign scala_2_version = release.version %}
{% endif %}
{% endif %}
{% endfor %}
<a href="/download/all.html" class="button">
All Releases
</a>
</div>
</div>
<p>
<a href="/download/all.html">
Scala {{scala_2_version}} and older releases
</a>
</p>
</div>
</div>
<div class="col-lg-6">
Expand Down
9 changes: 9 additions & 0 deletions _sass/layout/inner-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
margin-bottom: $padding-medium;
}

p {
margin-top: 10px;
}

@include bp(large) {
.button {
margin-bottom: 3px;
Expand All @@ -46,6 +50,11 @@
font-size: 1.4rem;
text-align: center;
}

p {
font-size: 1.2rem;
text-align: center;
}
}
}
}

0 comments on commit dd24130

Please sign in to comment.