pelicanconf.py

changeset 113
0bcf355064e5
parent 108
08c0c0d695e8
child 116
dad9b39691de
--- a/pelicanconf.py	Wed Oct 16 21:51:04 2019 +0200
+++ b/pelicanconf.py	Wed Oct 16 21:51:50 2019 +0200
@@ -2,16 +2,18 @@
 # -*- coding: utf-8 -*- #
 from __future__ import unicode_literals
 import socket
-_isprod = socket.gethostname() == 'sd-56079'
+
+isprod = socket.gethostname() == 'sd-56079'
 
 AUTHOR = u'David Douard'
 SITENAME = u'Whatever'
 SITESUBTITLE = u"A blog, sort of"
 TWITTER_USERNAME = u'douardda'
-CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),)
+CONTACTS = (('twitter', 'https://twitter.com/douardda'),
+            ('mastodon', 'https://social.logilab.org/@david'))
 
 
-if _isprod:
+if isprod:
     SITEURL = 'https://whatever.sdfa3.org'
     PIWIK = '''
 <script type="text/javascript">
@@ -44,9 +46,11 @@
 # Feed generation is usually not desired when developing
 #FEED_ALL_ATOM = None
 #CATEGORY_FEED_ATOM = None
+CATEGORY_FEED_ATOM_URL = 'feeds/%s.atom.xml'
 #TRANSLATION_FEED_ATOM = None
 #AUTHOR_FEED_ATOM = None
 #AUTHOR_FEED_RSS = None
+
 FEED_RSS = 'feeds/rss.xml'
 FEED_ALL_RSS = 'feeds/all.rss.xml'
 FEED_ATOM = 'feeds/atom.xml'
@@ -54,12 +58,13 @@
 
 # Blogroll
 LINKS = (('Pelican', 'http://getpelican.com/'),
-         ('Logilab.org', 'https://www.logilab.org/'),
          ('EEVBlog', 'https://www.eevblog.com/'),
          )
 
 # Social widget
-SOCIAL = (('twitter', 'https://twitter.com/douardda'))
+SOCIAL = (('twitter', 'https://twitter.com/douardda'),
+          ('mastodon', 'https://social.logilab.org/@david'))
+
 
 DEFAULT_PAGINATION = 10
 
@@ -74,7 +79,7 @@
 PLUGINS = ['better_figures_and_images',
            'sitemap',
            'feed_summary',
-           #'assets',
+           # 'assets',
            'series',
            'related_posts',
            'filetime_from_hg',
@@ -82,7 +87,7 @@
            'pelican_javascript',
            'wavedrom',
            'plotly',
-           'image_process',
+           # 'image_process',  # seems broken with pelican 4
            ]
 RESPONSIVE_IMAGES = True
 TYPOGRIPFY = True
@@ -110,4 +115,3 @@
   }
 
 PEERTUBE_URL = "https://peertube.social"
-

mercurial