mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Temporary workaround to make last-release redirect work (#12255)
This commit is contained in:
parent
f1ad5ae6c3
commit
5c1d1e846e
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user