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>
8 lines
260 B
Plaintext
8 lines
260 B
Plaintext
{% assign url = page.url | split: '/' %}
|
|
{% assign currentVersion = url[3] %}
|
|
{% if currentVersion != 'latest' %}
|
|
{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %}
|
|
{% else %}
|
|
{% assign branchName = currentVersion %}
|
|
{% endif %}
|