Make HTTPS the default & update canonical

This commit is contained in:
Dan Bader
2018-07-16 14:35:36 -07:00
parent 936c3c7df5
commit 40571f40e8
7 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -6,11 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
{% if pagename == 'index' %}
<link rel="canonical" href="http://docs.python-guide.org/"/>
<link rel="canonical" href="https://docs.python-guide.org/"/>
{% elif pagename == '404' %}
{# No canonical on our 404 template. #}
{% else %}
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
<link rel="canonical" href="https://docs.python-guide.org/{{ pagename }}/"/>
{% endif %}
<link rel="icon" type="image/png" href="https://media.readthedocs.org/images/favicon.png">