We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c4e4e commit 4505341Copy full SHA for 4505341
1 file changed
docs/layouts/partials/navbar-version-selector.html
@@ -14,11 +14,14 @@
14
</button>
15
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
16
{{ range .Site.Params.versions }}
17
+ {{ $finalUrl := cond (gt (len (findRE "^http(s)?://" .url)) 0) .url (relURL .url) }}
18
+ {{ if $finalUrl }}
19
<a
20
class="dropdown-item{{ if eq ( $.Scratch.Get "activeVersion" ) ( printf "%s" .version ) }} active{{ end }}"
- href="{{ cond (gt (len (findRE "^http(s)?://" .url)) 0) .url (relURL .url) }}"
21
+ href="{{ $finalUrl }}"
22
>
23
{{ .version }}
24
</a>
25
{{ end }}
26
+ {{ end }}
27
</div>
0 commit comments