pelicanconf.py

changeset 113
0bcf355064e5
parent 108
08c0c0d695e8
child 116
dad9b39691de
equal deleted inserted replaced
112:534da25d732e 113:0bcf355064e5
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
72 'pelican-plugins/pelican-peertube', 77 'pelican-plugins/pelican-peertube',
73 ] 78 ]
74 PLUGINS = ['better_figures_and_images', 79 PLUGINS = ['better_figures_and_images',
75 'sitemap', 80 'sitemap',
76 'feed_summary', 81 'feed_summary',
77 #'assets', 82 # 'assets',
78 'series', 83 'series',
79 'related_posts', 84 'related_posts',
80 'filetime_from_hg', 85 'filetime_from_hg',
81 'pelican_peertube', 86 'pelican_peertube',
82 'pelican_javascript', 87 'pelican_javascript',
83 'wavedrom', 88 'wavedrom',
84 'plotly', 89 'plotly',
85 'image_process', 90 # 'image_process', # seems broken with pelican 4
86 ] 91 ]
87 RESPONSIVE_IMAGES = True 92 RESPONSIVE_IMAGES = True
88 TYPOGRIPFY = True 93 TYPOGRIPFY = True
89 SINGLE_AUTHOR = True 94 SINGLE_AUTHOR = True
90 MINT = True 95 MINT = True
108 'default': '800w', 113 'default': '800w',
109 }, 114 },
110 } 115 }
111 116
112 PEERTUBE_URL = "https://peertube.social" 117 PEERTUBE_URL = "https://peertube.social"
113

mercurial