Skip to content

Commit

Permalink
Always show Versions menu, though disabled when necessary (#338)
Browse files Browse the repository at this point in the history
Now we always display the Versions menu but have made it inactive on pages where it doesn't apply

Signed-off-by: Nate W <[email protected]>
  • Loading branch information
nate-double-u authored Jun 1, 2021
1 parent 563ea23 commit 0668c0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/navbar-version-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
<a class="dropdown-item" href="{{ $targetURL }}">{{ $versName }}</a>
{{ end -}}
</div>
{{ else }}
<a class="nav-link dropdown-toggle disabled" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{- .Site.Params.version_menu -}}
</a>
{{ end -}}

0 comments on commit 0668c0c

Please sign in to comment.