Skip to content

Commit 7b3c02b

Browse files
committed
added google analytics
1 parent 7f9dfb8 commit 7b3c02b

7 files changed

Lines changed: 53 additions & 3 deletions

File tree

‎app/content/2014-02-09.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ Une fonction de création de bd:
8686
sqlite.connect(path)
8787

8888
engine = create_engine('sqlite:///%s' % path, convert_unicode=True)
89+
# magie ! création des tables selon les models que vous aurez déclaré
90+
# précédemment
8991
Base.metadata.create_all(bind=engine)
92+
9093
print(green(u"Base de données créé !"))
9194

9295
Et finalement, une fonction de création de session:

‎app/content/pages/presentations.md‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,36 @@ Slug: presentations
33
Author: Les organisateurs de Québec-Python
44
Summary: La liste de nos présentation par le passé
55

6-
...
6+
7+
<div class="row">
8+
<div class="col-lg-6">
9+
<h2>4 février 2014</h2>
10+
<ul>
11+
<li>Les idiomes en Python - Bernard Chhun</li>
12+
<li>Web scraping 101 en Python - Akim Couture</li>
13+
<li>Module Quantities - Yannick Hold-Geoffroy</li>
14+
<li>Module sh - Gregory Fodé Sanderson</li>
15+
</ul>
16+
</div>
17+
<div class="col-lg-6">
18+
<h2>20 novembre 2013</h2>
19+
<ul>
20+
<li>Pyramid VS Django - Bernard Chhun</li>
21+
<li>ZeroMQ - Yannick Hold-Geoffroy</li>
22+
<li>Lettuce - Gregory Eric Sanderson</li>
23+
</ul>
24+
</div>
25+
</div>
26+
27+
<div class="row">
28+
<div class="col-lg-6">
29+
<h2>16 octobre 2013</h2>
30+
<ul>
31+
<li>From python import community - Éric Araujo</li>
32+
<li>Pelican: un générateur de site web statique - Bernard Chhun</li>
33+
<li>Faire des extensions de Python en C - Virgil Dupras</li>
34+
<li>Fabric - Gregory Eric Sanderson</li>
35+
<li>HDF5 - Félix-Antoine Fortin</li>
36+
</ul>
37+
</div>
38+
</div>

‎app/pelicanconf.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"node_modules/*"
1919
)
2020

21+
PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
22+
2123
DEFAULT_LANG = u'fr'
2224

2325
# Feed generation is usually not desired when developing

‎app/themes/quebecpython/static/css/main.min.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/themes/quebecpython/static/css/src/main.less‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@
5252
@import "@{base_url}/responsive-utilities.less";
5353

5454
@import "qcpy.less";
55+
@import "monokai.less";
5556

‎app/themes/quebecpython/templates/base.html‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,15 @@ <h1><a href="/">{{ SITENAME }}</a></h1>
3838
</div>
3939
</div>
4040
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
41+
<script>
42+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
43+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
44+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
45+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
46+
47+
ga('create', 'UA-47955921-1', 'quebecpython.org');
48+
ga('send', 'pageview');
49+
50+
</script>
4151
</body>
4252
</html>

‎app/themes/quebecpython/templates/page.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
{% block content %}
44
<article>
55
<h3 id="title">
6-
<a href="{{ SITEURL }}/{{ page.url }}" rel="bookmark">{{ page.title }}</a>
6+
<!-- <a href="{{ SITEURL }}/{{ page.url }}" rel="bookmark"> -->
7+
{{ page.title }}
8+
<!-- </a> -->
79
</h3>
810

911
{{ page.content }}

0 commit comments

Comments
 (0)