mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Fix 404 canonical
This commit is contained in:
Vendored
+2
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
{% if pagename == 'index' %}
|
{% if pagename == 'index' %}
|
||||||
<link rel="canonical" href="http://docs.python-guide.org/"/>
|
<link rel="canonical" href="http://docs.python-guide.org/"/>
|
||||||
|
{% elif pagename == '404' %}
|
||||||
|
{# No canonical on our 404 template. #}
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
|
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user