diff --git a/_templates/layout.html b/_templates/layout.html
index 998cb5822edd94322ce2d82e00a328cd573e1f0a..4c52909e9dd1cd8a4cb68a34879ceab094071a2c 100644
--- a/_templates/layout.html
+++ b/_templates/layout.html
@@ -14,19 +14,21 @@
   {% endif %}
   {{ super() }}
 {% endblock %}
-{% block menu %}
-  {% include "bversions.html" %}
-  {{ super() }}
-  {% if reference_links %}
-  <div class="toctree-wrapper compound">
-    <p class="caption"><span class="caption-text">Reference</span></p>
-    <ul>
-      {% for title, url in reference_links.items() %}
-      <li class="toctree-l1">
-        <a class="reference internal" href="{{ url }}">{{ title }}</a>
-      </li>
-      {% endfor %}
-    </ul>
-  </div>
-  {% endif %}
+{% block rootrellink %}
+  {% block menu %}
+    {% include "bversions.html" %}
+    {{ super() }}
+    {% if reference_links %}
+    <div class="toctree-wrapper compound">
+      <p class="caption"><span class="caption-text">Reference</span></p>
+      <ul>
+        {% for title, url in reference_links.items() %}
+        <li class="toctree-l1">
+          <a class="reference internal" href="{{ url }}">{{ title }}</a>
+        </li>
+        {% endfor %}
+      </ul>
+    </div>
+    {% endif %}
+  {% endblock %}
 {% endblock %}
diff --git a/conf.py b/conf.py
index 0ac4de350db904c4ef49b6463279c0a04d642510..76f4777f21d715a129896d89b775e86d4a3df0cb 100644
--- a/conf.py
+++ b/conf.py
@@ -76,6 +76,7 @@ with open(BBDOCS_BASE  / "VERSION") as f:
     else:
         major, minor, patch, extra = m.groups(1)
         version = ".".join((major, minor, patch))
+        release_version = ".".join((major, minor))
         if extra:
             version += "-" + extra