pelicanconf.py

changeset 40
2a30ebfd851f
parent 36
9507107a1133
child 41
376692051823
equal deleted inserted replaced
38:71e96f955e7a 40:2a30ebfd851f
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*- # 2 # -*- coding: utf-8 -*- #
3 from __future__ import unicode_literals 3 from __future__ import unicode_literals
4 import socket
5 _isprod = socket.gethostname() == 'sd-56079'
4 6
5 AUTHOR = u'David Douard' 7 AUTHOR = u'David Douard'
6 SITENAME = u'Whatever' 8 SITENAME = u'Whatever'
7 SITESUBTITLE = u"A blog, sort of" 9 SITESUBTITLE = u"A blog, sort of"
8 TWITTER_USERNAME = u'douardda' 10 TWITTER_USERNAME = u'douardda'
9 CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),) 11 CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),)
10 SITEURL = 'https://whatever.sdfa3.org' 12
13 if _isprod:
14 SITEURL = 'https://whatever.sdfa3.org'
15 PIWIK = '''
16 <script type="text/javascript">
17 var _paq = _paq || [];
18 _paq.push(["setDomains", ["*.whatever.sdfa3.org"]]);
19 _paq.push(['trackPageView']);
20 _paq.push(['enableLinkTracking']);
21 (function() {
22 var u="//piwik.sdfa3.org/";
23 _paq.push(['setTrackerUrl', u+'piwik.php']);
24 _paq.push(['setSiteId', 2]);
25 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
26 g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
27 })();
28 </script>
29 <noscript><p><img src="//piwik.sdfa3.org/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
30 <!-- End Piwik Code -->
31 '''
32 else:
33 SITEURL = ''
34 PIWIK = ''
11 35
12 PATH = 'content' 36 PATH = 'content'
13 37
14 THEME = 'theme' 38 THEME = 'theme'
15 TIMEZONE = 'Europe/Paris' 39 TIMEZONE = 'Europe/Paris'

mercurial