Add versions

This commit is contained in:
Jeremy Thomas
2017-07-24 15:44:24 +02:00
parent 42780d04a7
commit f9223ad360
10 changed files with 192 additions and 117 deletions

View File

@@ -0,0 +1,8 @@
{% if site.deprecated %}
<div class="notification is-info" style="border-radius: 0; margin-bottom: 0;">
<p>
You are viewing the deprecated <strong>{{site.version}}</strong> version of the website.
<a href="/">Click here to view the latest version</a>
</p>
</div>
{% endif %}

View File

@@ -62,7 +62,14 @@
</a>
<hr class="navbar-divider">
<div class="navbar-item">
<div>version <p class="has-text-info is-size-6-desktop">{{ site.version }}</p></div>
<div>
<p class="has-text-info is-size-6-desktop"><strong>{{ site.version }}</strong></p>
{{#unless site.deprecated}}
<small>
<a class="view-all-versions" href="/versions">View all versions</a>
</small>
{{/unless}}
</div>
</div>
</div>
</div>