docs: fix the links to examples in master branch

With the recent rename of master docs to the latest docs,
the links from the docs back to github need to be generated
with the latest url instead of master.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2021-11-11 15:32:29 -07:00
1 parent 901263f8fd
commit 839fdfe95d
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
{% assign url = page.url | split: '/' %}
{% assign currentVersion = url[3] %}
{% if currentVersion != 'master' %}
{% if currentVersion != 'latest' %}
{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %}
{% else %}
{% assign branchName = currentVersion %}