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

Commite3bedf7

Browse files
committed
Fix 404 canonical
1 parent728b9f1 commite3bedf7

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
<linkrel="canonical"href="http://docs.python-guide.org/"/>
10+
{% elif pagename == '404' %}
11+
{# No canonical on our 404 template. #}
1012
{% else %}
1113
<linkrel="canonical"href="http://docs.python-guide.org/{{ pagename }}/"/>
1214
{% endif %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp