Skip to content

Commit e1a9650

Browse files
committed
Fix canonical
1 parent 54921b1 commit e1a9650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/_templates/layout.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
77

8+
{% if pagename == 'index' %}
9+
<link rel="canonical" href="http://docs.python-guide.org/"/>
10+
{% else %}
811
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
12+
{% endif %}
13+
914
<link rel="icon" type="image/png" href="https://media.readthedocs.org/images/favicon.png">
1015

1116
<meta name="google-site-verification" content="013PxE2_8KX9jdUSC5gr8QsfdxTXr1mFgmD9zplp5II" />

0 commit comments

Comments
 (0)