From 5c1d1e846e9966673e76f0226f31ca54b3f029fc Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 3 Mar 2020 23:02:59 +0100 Subject: [PATCH] Temporary workaround to make last-release redirect work (#12255) --- source/latest-release-notes/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/latest-release-notes/index.html b/source/latest-release-notes/index.html index ce27c6f0841a..ed4b5859c396 100644 --- a/source/latest-release-notes/index.html +++ b/source/latest-release-notes/index.html @@ -1,7 +1,15 @@ --- --- - -{% assign posts = site.categories['Release-Notes'] | where_exp: "post", "post.title contains site.current_minor_version" %} +{% comment %} +Ugly workaround to make the release notes for 0.106 redirect nicely. +We did a special release with a blog post, so the latest release Notes +are going the wrong way. This hack can be removed after 0.107 is released. +{% endcomment %} +{% if site.current_minor_version == 106 %} + {% assign posts = site.categories['Release-Notes'] | where_exp: "post", "post.title contains 'Light brightness stepping'" %} +{% else %} + {% assign posts = site.categories['Release-Notes'] | where_exp: "post", "post.title contains site.current_minor_version" %} +{% endif %} {% assign recent_release_post = posts.first %}