Fix 404 canonical

This commit is contained in:
Dan Bader
2018-07-16 13:51:10 -07:00
parent 728b9f10a2
commit e3bedf76d4
+2
View File
@@ -7,6 +7,8 @@
{% if pagename == 'index' %}
<link rel="canonical" href="http://docs.python-guide.org/"/>
{% elif pagename == '404' %}
{# No canonical on our 404 template. #}
{% else %}
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
{% endif %}