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 |
4 import socket |
5 _isprod = socket.gethostname() == 'sd-56079' |
5 |
|
6 isprod = socket.gethostname() == 'sd-56079' |
6 |
7 |
7 AUTHOR = u'David Douard' |
8 AUTHOR = u'David Douard' |
8 SITENAME = u'Whatever' |
9 SITENAME = u'Whatever' |
9 SITESUBTITLE = u"A blog, sort of" |
10 SITESUBTITLE = u"A blog, sort of" |
10 TWITTER_USERNAME = u'douardda' |
11 TWITTER_USERNAME = u'douardda' |
11 CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),) |
12 CONTACTS = (('twitter', 'https://twitter.com/douardda'), |
|
13 ('mastodon', 'https://social.logilab.org/@david')) |
12 |
14 |
13 |
15 |
14 if _isprod: |
16 if isprod: |
15 SITEURL = 'https://whatever.sdfa3.org' |
17 SITEURL = 'https://whatever.sdfa3.org' |
16 PIWIK = ''' |
18 PIWIK = ''' |
17 <script type="text/javascript"> |
19 <script type="text/javascript"> |
18 var _paq = _paq || []; |
20 var _paq = _paq || []; |
19 _paq.push(["setDomains", ["*.whatever.sdfa3.org"]]); |
21 _paq.push(["setDomains", ["*.whatever.sdfa3.org"]]); |
42 DEFAULT_LANG = u'en' |
44 DEFAULT_LANG = u'en' |
43 |
45 |
44 # Feed generation is usually not desired when developing |
46 # Feed generation is usually not desired when developing |
45 #FEED_ALL_ATOM = None |
47 #FEED_ALL_ATOM = None |
46 #CATEGORY_FEED_ATOM = None |
48 #CATEGORY_FEED_ATOM = None |
|
49 CATEGORY_FEED_ATOM_URL = 'feeds/%s.atom.xml' |
47 #TRANSLATION_FEED_ATOM = None |
50 #TRANSLATION_FEED_ATOM = None |
48 #AUTHOR_FEED_ATOM = None |
51 #AUTHOR_FEED_ATOM = None |
49 #AUTHOR_FEED_RSS = None |
52 #AUTHOR_FEED_RSS = None |
|
53 |
50 FEED_RSS = 'feeds/rss.xml' |
54 FEED_RSS = 'feeds/rss.xml' |
51 FEED_ALL_RSS = 'feeds/all.rss.xml' |
55 FEED_ALL_RSS = 'feeds/all.rss.xml' |
52 FEED_ATOM = 'feeds/atom.xml' |
56 FEED_ATOM = 'feeds/atom.xml' |
53 FEED_ALL_ATOM = 'feeds/all.atom.xml' |
57 FEED_ALL_ATOM = 'feeds/all.atom.xml' |
54 |
58 |
55 # Blogroll |
59 # Blogroll |
56 LINKS = (('Pelican', 'http://getpelican.com/'), |
60 LINKS = (('Pelican', 'http://getpelican.com/'), |
57 ('Logilab.org', 'https://www.logilab.org/'), |
|
58 ('EEVBlog', 'https://www.eevblog.com/'), |
61 ('EEVBlog', 'https://www.eevblog.com/'), |
59 ) |
62 ) |
60 |
63 |
61 # Social widget |
64 # Social widget |
62 SOCIAL = (('twitter', 'https://twitter.com/douardda')) |
65 SOCIAL = (('twitter', 'https://twitter.com/douardda'), |
|
66 ('mastodon', 'https://social.logilab.org/@david')) |
|
67 |
63 |
68 |
64 DEFAULT_PAGINATION = 10 |
69 DEFAULT_PAGINATION = 10 |
65 |
70 |
66 # Uncomment following line if you want document-relative URLs when developing |
71 # Uncomment following line if you want document-relative URLs when developing |
67 #RELATIVE_URLS = True |
72 #RELATIVE_URLS = True |