Skip to content

Commit

Permalink
Fix a bug that caused prereleases to not be shown when there were les…
Browse files Browse the repository at this point in the history
…s than three applicable prereleases
  • Loading branch information
BadIdeaException committed Dec 27, 2023
1 parent 564617c commit 32271de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _pages/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ <h2>Download a pre-release</h2>
<p>Be the first to get new features by installing a pre-release version. These versions may still contain bugs or unfinished functionality.</p>
{% assign prereleases = site.github.releases | where: "prerelease", true
| where_exp: "release", "release.tag_name > site.github.latest_release.tag_name"
| sort: "tag_name"
| slice: -3, 3
| reverse %}
{% for prerelease in prereleases %}
| sort: "tag_name" %}
{% for prerelease in prereleases reversed limit: 3 %}
<article class="prerelease">
<div>
<h3 class="version">{{ prerelease.tag_name }}</h3>
Expand Down

0 comments on commit 32271de

Please sign in to comment.