Skip to content

Commit

Permalink
Fix pre-releases being cut off after the first three in downloads page.
Browse files Browse the repository at this point in the history
The for ... reversed limit 3 seems to limit first, then reverse. So instead, now the entire list is reversed, then iterated forward limited to 3.
  • Loading branch information
BadIdeaException committed Feb 11, 2024
1 parent 074eed8 commit 0340bdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _pages/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ <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" %}
{% for prerelease in prereleases reversed limit: 3 %}
| sort: "tag_name"
| reverse %}
{% for prerelease in prereleases limit: 3 %}
<article class="prerelease">
<div>
<h3 class="version">{{ prerelease.tag_name }}</h3>
Expand Down

0 comments on commit 0340bdf

Please sign in to comment.