Skip to content

Commit

Permalink
fix some version switcher paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Jan 7, 2020
1 parent 08369df commit 4e95b36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 }}
2 changes: 1 addition & 1 deletion docs/layouts/partials/version-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a class="version-switcher-option">{{$currentVersion}}</a>
{{ range $i, $version := $Versions }}
{{ if not (eq $currentVersion $version) }}
<a href="/{{$version}}/" class="version-switcher-option">{{$version}}</a>
<a href="https://gqlgen.com/{{$version}}/" class="version-switcher-option">{{$version}}</a>
{{ end }}
{{ end }}
</div>
Expand Down

0 comments on commit 4e95b36

Please sign in to comment.