Skip to content

Commit

Permalink
docs: fix links to the docs latest version (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored May 2, 2024
1 parent 79dc5e0 commit 293991e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/layouts/partials/version-banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

{{ if (eq $currentVersion "master") }}
<div class="alert-warning">
You are looking at the docs for the unreleased <code>master</code> branch. The latest version is <a href="/{{$latestVersion}}">{{ $latestVersion }}</a>.
You are looking at the docs for the unreleased <code>master</code> branch. The latest version is <a href="../{{$latestVersion}}/">{{ $latestVersion }}</a>.
</div>
{{ else if not (eq $latestVersion $currentVersion) }}
<div class="alert-warning">
You are looking at the docs for an older version ({{ $currentVersion }}). The latest version is <a href="/{{$latestVersion}}">{{ $latestVersion }}</a>.
You are looking at the docs for an older version ({{ $currentVersion }}). The latest version is <a href="../{{$latestVersion}}/">{{ $latestVersion }}</a>.
</div>
{{ end }}

0 comments on commit 293991e

Please sign in to comment.