# HG changeset patch # User Matthias Bussonnier # Date 1486490971 28800 # Tue Feb 07 10:09:31 2017 -0800 # Branch 2.7 # Node ID 4b3e5025199740a12ba467e39f864dd694394504 # Parent 3fd198b80f2977b9a91c85c8ee96d9aa76dbf38d Emit major version based canonical URLs for docs for Python 2 This add a "Cannonical" tag on the documentation which points to the stable url of Python version This should allow search engines to deduplicates results across multiple minor versions of Python and increase result ranking. Fix issue 26355 diff -r 3fd198b80f29 -r 4b3e50251997 Doc/tools/templates/layout.html --- a/Doc/tools/templates/layout.html Mon Feb 06 20:30:10 2017 -0800 +++ b/Doc/tools/templates/layout.html Tue Feb 07 10:09:31 2017 -0800 @@ -16,6 +16,7 @@ {% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} {% block extrahead %} + {% if not embedded %}{% endif %} {% if versionswitcher is defined and not embedded %}{% endif %} {{ super() }}