From 32271de506fee7322afdcbf41693086b7b17bd7a Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 27 Dec 2023 15:11:10 +0100 Subject: [PATCH] Fix a bug that caused prereleases to not be shown when there were less than three applicable prereleases --- _pages/download.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/_pages/download.html b/_pages/download.html index 9aeedc0..9c589ad 100644 --- a/_pages/download.html +++ b/_pages/download.html @@ -51,10 +51,8 @@

Download a pre-release

Be the first to get new features by installing a pre-release version. These versions may still contain bugs or unfinished functionality.

{% 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 %}

{{ prerelease.tag_name }}