diff --git a/Doc/tools/sphinxext/layout.html b/Doc/tools/sphinxext/layout.html
index 3f68a00..6702b21 100644
--- a/Doc/tools/sphinxext/layout.html
+++ b/Doc/tools/sphinxext/layout.html
@@ -3,11 +3,19 @@
Python{{ reldelim1 }}
- {{ shorttitle }}{{ reldelim1 }}
+
+ {% if pydoc_versionswitcher %}
+ {{ release }}
+ Documentation{{ reldelim1 }}
+ {% else %}
+ {{ shorttitle }}{{ reldelim1 }}
+ {% endif %}
+
{% endblock %}
{% block extrahead %}
{% if not embedded %}{% endif %}
+ {% if pydoc_versionswitcher %}{% endif %}
{% if pagename == 'whatsnew/changelog' %}