Add latest-release-notes and join-chat

This commit is contained in:
Paulus Schoutsen 2018-06-29 11:45:22 -04:00
parent d88fb2925a
commit 8be6a48e28
3 changed files with 13 additions and 4 deletions

View File

@ -11,8 +11,6 @@ hide_github_edit: true
description: Open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Installation in less than a minute. description: Open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Installation in less than a minute.
--- ---
{% assign recent_release_post = site.categories['Release-Notes'].first %}
<div class="frontpage"> <div class="frontpage">
<div class="grid"> <div class="grid">
<div class="grid__item one-third lap-one-third palm-one-whole"> <div class="grid__item one-third lap-one-third palm-one-whole">
@ -21,7 +19,7 @@ description: Open-source home automation platform running on Python 3. Track and
Released: <span class='release-date'>{{ site.date_released | date: '%B %d, %Y' }}</span> Released: <span class='release-date'>{{ site.date_released | date: '%B %d, %Y' }}</span>
<div class='links'> <div class='links'>
<a href='{{ root_url }}{{ recent_release_post.url }}{{ site.patch_version_notes }}'>Release notes</a> <a href='/latest-release-notes/'>Release notes</a>
</div> </div>
</div> </div>
<div class='join-community material-card text'> <div class='join-community material-card text'>
@ -30,7 +28,7 @@ description: Open-source home automation platform running on Python 3. Track and
<div class='links'> <div class='links'>
<a href='https://community.home-assistant.io'>Forums</a> <a href='https://community.home-assistant.io'>Forums</a>
<a href='https://discord.gg/c5DvZ4e'>Chat</a> <a href='/join-chat/'>Chat</a>
</div> </div>
</div> </div>
<div class='material-card text'> <div class='material-card text'>

View File

@ -0,0 +1,3 @@
<script>
document.location = 'https://discord.gg/c5DvZ4e';
</script>

View File

@ -0,0 +1,8 @@
---
---
{% assign recent_release_post = site.categories['Release-Notes'].first %}
<script>
document.location = '{{ recent_release_post.url }}{{ site.patch_version_notes }}';
</script>