Skip to content

Commit 9c58f0b

Browse files
committed
Prepare hosting migration
1 parent 75b235f commit 9c58f0b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/_templates/layout.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,20 @@
22

33
{%- block extrahead %}
44
{{ super() }}
5+
6+
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
7+
58
<meta name="google-site-verification" content="013PxE2_8KX9jdUSC5gr8QsfdxTXr1mFgmD9zplp5II" />
9+
10+
{# Alabaster theme native GA integration is outdated (ga.js). #}
11+
{# Insert our own GA snippet instead. #}
12+
<script>
13+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
14+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
15+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
16+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
17+
18+
ga('create', 'UA-37242602-11', 'auto');
19+
ga('send', 'pageview');
20+
</script>
621
{% endblock %}

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.6

0 commit comments

Comments
 (0)