diff --git a/doc/_templates/navbar-version.html b/doc/_templates/navbar-version.html
index 5dc35703b..61100de7e 100644
--- a/doc/_templates/navbar-version.html
+++ b/doc/_templates/navbar-version.html
@@ -1 +1 @@
- v{{ version.split('.d')[0] }}
\ No newline at end of file
+ v{{ ".".join(version.split('.')[:2]) + ".x"}}
\ No newline at end of file