Skip to content

Commit a79488b

Browse files
author
sacha
committed
Revert "add google tags"
This reverts commit fdc02b2.
1 parent fdc02b2 commit a79488b

File tree

1 file changed

+91
-120
lines changed
  • pelican-themes/pure-single/templates

1 file changed

+91
-120
lines changed
Lines changed: 91 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,100 @@
11
<!doctype html>
22
<html lang="en">
3-
43
<head>
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<meta name="description"
8-
content="{% block meta_description %}{{ SITENAME }}, {{ TAGLINE }}{% endblock meta_description %}">
9-
10-
{% if FEED_ALL_ATOM %}
11-
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml"
12-
title="{{ SITENAME }} Full Atom Feed" />
13-
{% endif %}
14-
{% if FEED_ALL_RSS %}
15-
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml"
16-
title="{{ SITENAME }} Full RSS Feed" />
17-
{% endif %}
18-
{% if FEED_ATOM %}
19-
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml"
20-
title="{{ SITENAME }} Atom Feed" />
21-
{% endif %}
22-
{% if FEED_RSS %}
23-
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml"
24-
title="{{ SITENAME }} RSS Feed" />
25-
{% endif %}
26-
27-
{% block head %}
28-
<title>{% block title %}{{ SITENAME }} // {{ TAGLINE }}{% endblock title %}</title>
29-
{% endblock head %}
30-
31-
{% if FAVICON_URL %}
32-
<link href="{{ FAVICON_URL }}" rel="icon">
33-
{% endif %}
34-
35-
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.3.0/pure-min.css">
36-
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">
37-
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pure.css">
38-
{% block head_css %}{% endblock %}
39-
40-
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
41-
{% block head_js %}{% endblock %}
42-
43-
<link rel="shortcut icon" href="{{ SITEURL }}/images/favicon.ico" type="image/x-icon">
44-
<link rel="icon" href="{{ SITEURL }}/images/favicon.ico" type="image/x-icon">
45-
46-
47-
48-
<!-- Google Tag Manager -->
49-
<script>(function (w, d, s, l, i) {
50-
w[l] = w[l] || []; w[l].push({
51-
'gtm.start':
52-
new Date().getTime(), event: 'gtm.js'
53-
}); var f = d.getElementsByTagName(s)[0],
54-
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
55-
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
56-
})(window, document, 'script', 'dataLayer', 'GTM-TQCCVJR6');</script>
57-
<!-- End Google Tag Manager -->
58-
59-
60-
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="description" content="{% block meta_description %}{{ SITENAME }}, {{ TAGLINE }}{% endblock meta_description %}">
7+
8+
{% if FEED_ALL_ATOM %}
9+
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" title="{{ SITENAME }} Full Atom Feed"/>
10+
{% endif %}
11+
{% if FEED_ALL_RSS %}
12+
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" title="{{ SITENAME }} Full RSS Feed"/>
13+
{% endif %}
14+
{% if FEED_ATOM %}
15+
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" title="{{ SITENAME }} Atom Feed"/>
16+
{% endif %}
17+
{% if FEED_RSS %}
18+
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" title="{{ SITENAME }} RSS Feed"/>
19+
{% endif %}
20+
21+
{% block head %}
22+
<title>{% block title %}{{ SITENAME }} // {{ TAGLINE }}{% endblock title %}</title>
23+
{% endblock head %}
24+
25+
{% if FAVICON_URL %}
26+
<link href="{{ FAVICON_URL }}" rel="icon">
27+
{% endif %}
28+
29+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.3.0/pure-min.css">
30+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">
31+
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pure.css">
32+
{% block head_css %}{% endblock %}
33+
34+
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
35+
{% block head_js %}{% endblock %}
36+
37+
<link rel="shortcut icon" href="{{ SITEURL }}/images/favicon.ico" type="image/x-icon">
38+
<link rel="icon" href="{{ SITEURL }}/images/favicon.ico" type="image/x-icon">
6139
</head>
6240

6341
<body>
64-
65-
<!-- Google Tag Manager (noscript) -->
66-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TQCCVJR6" height="0" width="0"
67-
style="display:none;visibility:hidden"></iframe></noscript>
68-
<!-- End Google Tag Manager (noscript) -->
69-
70-
<div class="pure-g-r" id="layout">
71-
<div class="sidebar pure-u">
72-
<div class="cover-img" style="background-image: url('{% block sidebar %}{{ COVER_IMG_URL }}{% endblock %}')">
73-
<div class="cover-body">
74-
<header class="header">
75-
<hgroup>
76-
{% if PROFILE_IMG_URL %}
77-
<img class="avatar" src="{{ PROFILE_IMG_URL }}">
78-
{% endif %}
79-
<h1 class="brand-main"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
80-
<p class="tagline">{{ TAGLINE }}</p>
81-
{% for title, link in MENUITEMS %}
82-
<p class="links"><a href="{{ SITEURL }}/{{ link }}">{{ title }}</a></p>
83-
{% endfor %}
84-
85-
<p class="links"><a href="http://www.cafe-sciences.org/">Café des sciences</a></p>
86-
87-
<p class="social">
88-
{% for title, link in SOCIAL %}
89-
<a href="{{ link }}">
90-
<i class="fa fa-{{ title }} fa-3x"></i>
91-
</a>
92-
{% endfor %}
93-
</p>
94-
</hgroup>
95-
</header>
42+
<div class="pure-g-r" id="layout">
43+
<div class="sidebar pure-u">
44+
<div class="cover-img" style="background-image: url('{% block sidebar %}{{ COVER_IMG_URL }}{% endblock %}')">
45+
<div class="cover-body">
46+
<header class="header">
47+
<hgroup>
48+
{% if PROFILE_IMG_URL %}
49+
<img class="avatar" src="{{ PROFILE_IMG_URL }}">
50+
{% endif %}
51+
<h1 class="brand-main"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
52+
<p class="tagline">{{ TAGLINE }}</p>
53+
{% for title, link in MENUITEMS %}
54+
<p class="links"><a href="{{ SITEURL }}/{{ link }}">{{ title }}</a></p>
55+
{% endfor %}
56+
57+
<p class="links"><a href="http://www.cafe-sciences.org/">Café des sciences</a></p>
58+
59+
<p class="social">
60+
{% for title, link in SOCIAL %}
61+
<a href="{{ link }}">
62+
<i class="fa fa-{{ title }} fa-3x"></i>
63+
</a>
64+
{% endfor %}
65+
</p>
66+
</hgroup>
67+
</header>
68+
</div>
69+
</div>
9670
</div>
97-
</div>
71+
{% block content %}
72+
{% endblock %}
9873
</div>
99-
{% block content %}
100-
{% endblock %}
101-
</div>
102-
<script>
103-
var $top = $('.go-top');
104-
105-
// Show or hide the sticky footer button
106-
$(window).scroll(function () {
107-
if ($(this).scrollTop() > 200) {
108-
$top.fadeIn(200);
109-
} else {
110-
$top.fadeOut(200);
111-
}
112-
});
113-
114-
// Animate the scroll to top
115-
$top.click(function (event) {
116-
event.preventDefault();
117-
$('html, body').animate({scrollTop: 0}, 300);
118-
})
119-
120-
// Makes sure that the href="#" attached to the <a> elements
121-
// don't scroll you back up the page.
122-
$('body').on('click', 'a[href="#"]', function (event) {
123-
event.preventDefault();
124-
});
125-
</script>
126-
{% include 'analytics.html' %}
74+
<script>
75+
var $top = $('.go-top');
76+
77+
// Show or hide the sticky footer button
78+
$(window).scroll(function() {
79+
if ($(this).scrollTop() > 200) {
80+
$top.fadeIn(200);
81+
} else {
82+
$top.fadeOut(200);
83+
}
84+
});
85+
86+
// Animate the scroll to top
87+
$top.click(function(event) {
88+
event.preventDefault();
89+
$('html, body').animate({scrollTop: 0}, 300);
90+
})
91+
92+
// Makes sure that the href="#" attached to the <a> elements
93+
// don't scroll you back up the page.
94+
$('body').on('click', 'a[href="#"]', function(event) {
95+
event.preventDefault();
96+
});
97+
</script>
98+
{% include 'analytics.html' %}
12799
</body>
128-
129-
</html>
100+
</html>

0 commit comments

Comments
 (0)