From f92f49fa3c8dc167e609735a7f0b6f09abad3bea Mon Sep 17 00:00:00 2001 From: Karl Skewes Date: Tue, 12 Sep 2023 10:11:41 +1200 Subject: [PATCH] fix(changelog): Show most recent 3 major minor versions (#383) --- layouts/shortcodes/latest-stable.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/latest-stable.html b/layouts/shortcodes/latest-stable.html index f773dc67..98920780 100644 --- a/layouts/shortcodes/latest-stable.html +++ b/layouts/shortcodes/latest-stable.html @@ -22,7 +22,17 @@ {{ end }} {{ end }} -{{ $latest_stables := first 3 (sort ($latest_major_minors).ByDate.Reverse) }} + +{{ $latest_stables := first 3 (sort (first 6 (sort ($latest_major_minors).ByDate.Reverse)).ByTitle.Reverse) }} {{ range sort ($latest_stables).ByTitle.Reverse }}