Preserve relative path when switching between versions of the documentation
This commit is contained in:
committed by
brianpursley
parent
bb7c4de5f8
commit
7bc5ee0710
@@ -2,7 +2,8 @@
|
||||
{{ T "version_menu" }}
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
|
||||
{{ $p := . }}
|
||||
{{ range .Site.Params.versions }}
|
||||
<a class="dropdown-item" href="{{ .url }}">{{ .version }}</a>
|
||||
<a class="dropdown-item" href="{{ .url }}{{ $p.RelPermalink }}">{{ .version }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user