diff --git a/themes/jaeger-docs/layouts/partials/docs/header.html b/themes/jaeger-docs/layouts/partials/docs/header.html index abe7a8a2..724c8d6f 100644 --- a/themes/jaeger-docs/layouts/partials/docs/header.html +++ b/themes/jaeger-docs/layouts/partials/docs/header.html @@ -21,11 +21,14 @@ {{ $latestUrlV1 := .RelPermalink | replaceRE $version $latestV1 }} {{ $latestUrlV2 := .RelPermalink | replaceRE $version $latestV2 }} -{{ $latestUrl := "" }} +{{ $latestUrl := "" }} {{ if eq $vMajor "1" }} - {{ $latestUrl = .RelPermalink | replaceRE $version $latestV1 }} + {{ $latestUrl = .RelPermalink | replaceRE $version $latestV1 }} {{ else if eq $vMajor "2" }} - {{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }} + {{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }} +{{ else if eq $vMajor "docs" }} + {{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }} + {{ $vMajor = "2" }} {{ end }}