mirror of https://github.com/crossplane/docs.git
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:
parent
0826f96277
commit
6a0014b9ca
|
@ -4,7 +4,7 @@
|
|||
{% assign currentVersion = url[2] %}
|
||||
{% assign currentVersionBranch = currentVersion | replace: 'v', 'release-' %}
|
||||
{% assign currentVersionPath = '/docs/' | append: currentVersion | append: '/' %}
|
||||
{% assign latestVersion = site.data.versions[0].version %}
|
||||
{% assign latestVersion = "v1.0" %}
|
||||
{% assign filepath = page.url | replace: currentVersionPath %}
|
||||
{% assign repopath = 'docs/' | append: filepath | remove: '.html' | append: '.md' %}
|
||||
{% if repopath == 'docs/.md' %}{% assign repopath = 'docs/README.md' %}{% endif %}
|
||||
|
|
Loading…
Reference in New Issue