-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Expand file tree
/
Copy pathlayout.html
More file actions
113 lines (96 loc) · 4.01 KB
/
layout.html
File metadata and controls
113 lines (96 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{% extends "!layout.html" %}
{%- block extrahead %}
{# No super() because we want to avoid loading an empty custom.css file #}
{# <meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75" /> #}
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
div.body {
min-width: initial;
max-width: initial;
}
</style>
{% if pagename == 'index' %}
<link rel="canonical" href="https://docs.python-guide.org/"/>
<meta property="og:url" content="https://docs.python-guide.org/">
{% elif pagename == '404' %}
{# No canonical on our 404 template. #}
{% else %}
<link rel="canonical" href="https://docs.python-guide.org/{{ pagename }}/"/>
<meta property="og:url" content="https://docs.python-guide.org/{{ pagename }}">
{% endif %}
<link rel="icon" type="image/png" href="https://media.readthedocs.org/images/favicon.png">
<meta name="google-site-verification" content="013PxE2_8KX9jdUSC5gr8QsfdxTXr1mFgmD9zplp5II" />
<meta name="twitter:card" content="summary">
<meta property="twitter:image" content="https://docs.python-guide.org/_static/social-card.jpg">
<meta property="og:image" content="https://docs.python-guide.org/_static/social-card.jpg">
<meta property="og:title" content="{{ title }}{{ titlesuffix }}">
<meta property="og:type" content="article">
{%- if metatags is defined %}
{# FIXME: For some reason the `meta` dict is always empty. Extract the desc from the `metatags` text. #}
<meta property="og:description" content="{{ metatags[15:-24] }}">
{%- endif %}
<script>window.rp_prop_id = '29182759436';</script>
<script src="https://srv.realpython.net/tag.js" async></script>
<script src="https://d31vxm9ubutrmw.cloudfront.net/static/js/2169.js"></script>
{# Alabaster theme native GA integration is outdated (ga.js). #}
{# Insert our own GA snippet instead. #}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-37242602-11', 'auto');
ga('send', 'pageview');
</script>
{% endblock %}
{# From: https://github.com/bitprophet/alabaster/blob/5f249677242be96601e034edb3697b7482a6abcf/alabaster/layout.html #}
{# Nav should appear before content, not after #}
{%- block content %}
{%- if theme_fixed_sidebar|lower == 'true' %}
<div class="document">
{{ sidebar() }}
{%- block document %}
<div class="documentwrapper">
{%- if render_sidebar %}
<div class="bodywrapper">
{%- endif %}
{%- block relbar_top %}
{%- if theme_show_relbar_top|tobool %}
<div class="related top">
{{- rellink_markup () }}
</div>
{%- endif %}
{% endblock %}
<div class="body" role="main">
<div style="display:block;position:relative; margin-bottom: 1em;">
<div style="display:block;width:100%;padding-top:12.5%;"></div>
<div class="rpad" data-unit="8x1" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
</div>
{% block body %} {% endblock %}
</div>
{%- block relbar_bottom %}
{%- if theme_show_relbar_bottom|tobool %}
<div class="related bottom">
{{- rellink_markup () }}
</div>
{%- endif %}
{% endblock %}
{%- if render_sidebar %}
</div>
{%- endif %}
</div>
{%- endblock %}
<div class="clearer"></div>
</div>
{%- else %}
{{ super() }}
{%- endif %}
{%- endblock %}
{%- block footer %}
<div class="footer">
<div style="text-align: center;" id="waldo-tag-2171"></div>
{% if show_copyright %}<p>©{{ copyright }}</p>{% endif %}
</div>
{% endblock %}