Set latestVersion to v1.0

We hardcode v1.0 as latestVersion during v1.1 freeze so that the new
branch will not be the default shown to users visiting the site.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
hasheddan 2021-02-15 17:32:52 -06:00
parent 0826f96277
commit 6a0014b9ca
No known key found for this signature in database
GPG Key ID: BD68BC686A14C271
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
{% assign currentVersion = url[2] %} {% assign currentVersion = url[2] %}
{% assign currentVersionBranch = currentVersion | replace: 'v', 'release-' %} {% assign currentVersionBranch = currentVersion | replace: 'v', 'release-' %}
{% assign currentVersionPath = '/docs/' | append: currentVersion | append: '/' %} {% assign currentVersionPath = '/docs/' | append: currentVersion | append: '/' %}
{% assign latestVersion = site.data.versions[0].version %} {% assign latestVersion = "v1.0" %}
{% assign filepath = page.url | replace: currentVersionPath %} {% assign filepath = page.url | replace: currentVersionPath %}
{% assign repopath = 'docs/' | append: filepath | remove: '.html' | append: '.md' %} {% assign repopath = 'docs/' | append: filepath | remove: '.html' | append: '.md' %}
{% if repopath == 'docs/.md' %}{% assign repopath = 'docs/README.md' %}{% endif %} {% if repopath == 'docs/.md' %}{% assign repopath = 'docs/README.md' %}{% endif %}