Sun, 17 Apr 2016 18:12:25 +0200
[LPD422FM] new blog about the LPD 422 FM regulated power supply
0 | 1 | #!/usr/bin/env python |
2 | # -*- coding: utf-8 -*- # | |
3 | from __future__ import unicode_literals | |
40
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
4 | import socket |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
5 | _isprod = socket.gethostname() == 'sd-56079' |
0 | 6 | |
7 | AUTHOR = u'David Douard' | |
8 | SITENAME = u'Whatever' | |
34
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
9 | SITESUBTITLE = u"A blog, sort of" |
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
10 | TWITTER_USERNAME = u'douardda' |
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
11 | CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),) |
40
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
12 | |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
13 | if _isprod: |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
14 | SITEURL = 'https://whatever.sdfa3.org' |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
15 | PIWIK = ''' |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
16 | <script type="text/javascript"> |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
17 | var _paq = _paq || []; |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
18 | _paq.push(["setDomains", ["*.whatever.sdfa3.org"]]); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
19 | _paq.push(['trackPageView']); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
20 | _paq.push(['enableLinkTracking']); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
21 | (function() { |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
22 | var u="//piwik.sdfa3.org/"; |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
23 | _paq.push(['setTrackerUrl', u+'piwik.php']); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
24 | _paq.push(['setSiteId', 2]); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
25 | var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
26 | g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
27 | })(); |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
28 | </script> |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
29 | <noscript><p><img src="//piwik.sdfa3.org/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript> |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
30 | <!-- End Piwik Code --> |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
31 | ''' |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
32 | else: |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
33 | SITEURL = '' |
2a30ebfd851f
[base] add piwik js stuff
David Douard <david.douard@logilab.fr>
parents:
36
diff
changeset
|
34 | PIWIK = '' |
0 | 35 | |
36 | PATH = 'content' | |
37 | ||
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
38 | THEME = 'theme' |
0 | 39 | TIMEZONE = 'Europe/Paris' |
40 | ||
41 | DEFAULT_LANG = u'en' | |
42 | ||
43 | # Feed generation is usually not desired when developing | |
26 | 44 | #FEED_ALL_ATOM = None |
45 | #CATEGORY_FEED_ATOM = None | |
46 | #TRANSLATION_FEED_ATOM = None | |
47 | #AUTHOR_FEED_ATOM = None | |
48 | #AUTHOR_FEED_RSS = None | |
49 | FEED_RSS = 'feeds/rss.xml' | |
50 | FEED_ALL_RSS = 'feeds/all.rss.xml' | |
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
51 | FEED_ATOM = 'feeds/atom.xml' |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
52 | FEED_ALL_ATOM = 'feeds/all.atom.xml' |
0 | 53 | |
54 | # Blogroll | |
55 | LINKS = (('Pelican', 'http://getpelican.com/'), | |
34
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
56 | ('Logilab.org', 'https://www.logilab.org/'), |
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
57 | ('EEVBlog', 'https://www.eevblog.com/'), |
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
58 | ) |
0 | 59 | |
60 | # Social widget | |
34
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
61 | SOCIAL = (('twitter', 'https://twitter.com/douardda'), |
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
62 | ) |
0 | 63 | |
64 | DEFAULT_PAGINATION = 10 | |
65 | ||
66 | # Uncomment following line if you want document-relative URLs when developing | |
67 | #RELATIVE_URLS = True | |
24
89689c6e9cf4
[hp8904a] add two blogs about the HP8904A and a small update of the about page
David Douard <david.douard@logilab.fr>
parents:
0
diff
changeset
|
68 | |
89689c6e9cf4
[hp8904a] add two blogs about the HP8904A and a small update of the about page
David Douard <david.douard@logilab.fr>
parents:
0
diff
changeset
|
69 | STATIC_PATHS = ['images', 'pdfs'] |
89689c6e9cf4
[hp8904a] add two blogs about the HP8904A and a small update of the about page
David Douard <david.douard@logilab.fr>
parents:
0
diff
changeset
|
70 | |
89689c6e9cf4
[hp8904a] add two blogs about the HP8904A and a small update of the about page
David Douard <david.douard@logilab.fr>
parents:
0
diff
changeset
|
71 | PLUGIN_PATHS = ['pelican-plugins',] |
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
72 | PLUGINS = ['better_figures_and_images', |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
73 | 'sitemap', |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
74 | 'feed_summary', |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
75 | 'assets', |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
76 | 'series', |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
77 | 'related_posts', |
41
376692051823
[config] activate the filetime_from_hg plugin
David Douard <david.douard@logilab.fr>
parents:
40
diff
changeset
|
78 | 'filetime_from_hg', |
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
79 | ] |
24
89689c6e9cf4
[hp8904a] add two blogs about the HP8904A and a small update of the about page
David Douard <david.douard@logilab.fr>
parents:
0
diff
changeset
|
80 | RESPONSIVE_IMAGES = True |
34
871fcc94f63e
[config] add twitter stuff an links to eevblog and elo
David Douard <david.douard@logilab.fr>
parents:
26
diff
changeset
|
81 | TYPOGRIPFY = True |
36
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
82 | SINGLE_AUTHOR = True |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
83 | MINT=True |
9507107a1133
[theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
34
diff
changeset
|
84 | SITEMAP = {'format': 'xml'} |