Fix latest-release-notes redirect (#11936)

This commit is contained in:
Franck Nijhof 2020-01-31 14:53:05 +01:00 committed by GitHub
parent 792a18b9a8
commit e2802fdb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
---
---
{% assign recent_release_post = site.categories['Release-Notes'].first %}
{% assign posts = site.categories['Release-Notes'] | where_exp: "post", "post.title contains site.current_minor_version" %}
{% assign recent_release_post = posts.first %}
<script>
document.location = '{{ recent_release_post.url }}{{ site.patch_version_notes }}';