Skip to content

Commit

Permalink
Temporary workaround to make last-release redirect work (home-assista…
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Mar 3, 2020
1 parent f1ad5ae commit 5c1d1e8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/latest-release-notes/index.html
Original file line number Diff line number Diff line change
@@ -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 %}

<script>
Expand Down

0 comments on commit 5c1d1e8

Please sign in to comment.