Newer
Older
import os
PLUGINS = [
'flamingo.plugins.Redirects',
'flamingo.plugins.rstBootstrap3',
'flamingo.plugins.rstPygments',
'plugins/blog.py::Blog',
'flamingo.plugins.Feeds',
# remove flamingo core HTML plugin.
# we can now use our own "Raw"
DEFAULT_PLUGINS = [x for x in DEFAULT_PLUGINS if x != "flamingo.plugins.HTML"]
FEEDS_DOMAIN = 'https://freifunk-bs.de'
FEEDS = [
{
'id': 'freifunk-bs.de/feed',
'title': 'freifunk-bs.de',
'type': 'atom',
'output': 'all.atom.xml',
'lang': 'en',
'contents':
lambda ctx: ctx.contents.filter(feedtag=True).order_by("date"),
'entry-id':
lambda content: 'tag:freifunk-bs.de,{}:/{}'.format(
content['date'],
os.path.basename(content['url']),
),
'updated':
lambda content: content['date'].strftime('%Y-%m-%d %H:%M:%S+01:00')
},
]