Dynamically set version, link and date on frontpage
This commit is contained in:
parent
9b15c44756
commit
a420dd20e7
3 changed files with 10 additions and 3 deletions
|
@ -11,15 +11,17 @@ description: Open-source home automation platform running on Python 3. Track and
|
|||
hide_github_edit: true
|
||||
---
|
||||
|
||||
{% assign recent_release_post = site.categories['Release-Notes'].first %}
|
||||
|
||||
<div class="frontpage">
|
||||
<div class="grid">
|
||||
<div class="grid__item one-third lap-one-third palm-one-whole">
|
||||
<div class='current-version material-card text'>
|
||||
<h1>Current Version: 0.31.1</h1>
|
||||
Released: <span class='release-date'>October 24, 2016</span>
|
||||
<h1>Current Version: {{ site.current_major_version }}.{{ site.current_minor_version }}.{{ site.current_patch_version }}</h1>
|
||||
Released: <span class='release-date' title='{{ recent_release_post.release_date }}'>{{ recent_release_post.release_date | date: '%B %d, %Y' }}</span>
|
||||
|
||||
<div class='links'>
|
||||
<a href='/blog/2016/10/22/flash-briefing-updater-hacktoberfest/'>Release notes</a>
|
||||
<a href='{{ root_url }}{{ recent_release_post.url }}'>Release notes</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class='join-community material-card text'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue