-
-
+
+
{{ partial "breadcrumbs" (dict "context" . "menu" (.Scratch.Get "currentVersionMenu")) }}
{{ .Description }} {{ if .IsDraft }} (Draft){{ end }}
- {{ .Page.Params.headcontent }}
-
+ {{ .Page.Params.headcontent }}
+
+ {{ $urlArray := split (urls.Parse .Permalink).Path "/" }}
+ {{ $latestUrl := path.Join "latest" (after 2 $urlArray) }}
+ {{ $latestUrl = add (add "/" $latestUrl) "/" }}
+ {{ if ne (index $urlArray 1) "latest" }}
+
+
Note
+ Click
here to go to documentation for the latest version of YugaByte DB.
+
+ {{ end }}
{{ .Content }}
diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html
index 5a958244c0b7..cd004f1c39fe 100644
--- a/docs/layouts/_default/single.html
+++ b/docs/layouts/_default/single.html
@@ -28,8 +28,19 @@
{{ partial "breadcrumbs" (dict "context" . "menu" (.Scratch.Get "currentVersionMenu")) }}
{{ .Description }} {{ if .IsDraft }} (Draft){{ end }}{{ if .Page.Params.beta }}Beta{{ end }}
+
+ {{ $urlArray := split (urls.Parse .Permalink).Path "/" }}
+ {{ $latestUrl := path.Join "latest" (after 2 $urlArray) }}
+ {{ $latestUrl = add (add "/" $latestUrl) "/" }}
+ {{ if ne (index $urlArray 1) "latest" }}
+
+
Note
+ Click
here to go to documentation for the latest version of YugaByte DB.
+
+ {{ end }}
+
- {{if (.Params.showAsideToc) }}
+ {{if (.Params.showAsideToc) }}
{{ .TableOfContents }}
{{ else }}
{{ .TableOfContents }}