merge of '6029e776f16eff1c3d008470b956fabc4c3e8b78'

and 'ada168d62f3b5785004143db6533c4b4ce0021de'
This commit is contained in:
zzz
2015-09-12 17:18:19 +00:00
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ def get_blog_feed_items(num=0, category=None):
a = {}
a['title'] = meta['title']
a['content'] = meta['excerpt'] if len(meta['excerpt']) > 0 else parts['fragment']
a['author'] = meta['author']
a['url'] = url_for('blog_post', lang=g.lang, slug=post[0])
a['updated'] = datetime.datetime.strptime(meta['date'], '%Y-%m-%d')
items.append(a)

View File

@@ -66,6 +66,7 @@ def blog_atom(category=None):
for item in items:
feed.add(item['title'],
item['content'],
author=item['author'],
content_type='html',
url=item['url'],
updated=item['updated'])