diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html
index f924549d8..df3d97018 100644
--- a/layouts/partials/docs/menu.html
+++ b/layouts/partials/docs/menu.html
@@ -2,11 +2,14 @@
{{ $thisPage := .RelPermalink }}
{{ $docsSections := where site.Sections "Section" "docs" }}
{{ $version := index (split .File.Path "/") 1 }}
+{{ $versionNumbers := split $version "." }}
+{{ $majorVersion := index $versionNumbers 0 }}
+{{ $minorVersion := index $versionNumbers 1 }}