Skip to content

Commit e3bedf7

Browse files
committed
Fix 404 canonical
1 parent 728b9f1 commit e3bedf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/_templates/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
{% if pagename == 'index' %}
99
<link rel="canonical" href="http://docs.python-guide.org/"/>
10+
{% elif pagename == '404' %}
11+
{# No canonical on our 404 template. #}
1012
{% else %}
1113
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
1214
{% endif %}

0 commit comments

Comments
 (0)