Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1a9650

Browse files
committed
Fix canonical
1 parent54921b1 commite1a9650

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
<metaname="viewport"content="width=device-width, initial-scale=0.9, maximum-scale=0.9"/>
77

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp