Use the summary as the feed's description, and put content in content

This adheres more closely to the specs, especially Atom, where the
'description' arg becomes <summary>.

Note that this means full article content will no longer appear in RSS
feeds.
This commit is contained in:
Eevee (Lexy Munroe) 2016-08-07 17:04:03 -07:00 committed by Justin Mayer
commit eac8fa2abd
34 changed files with 463 additions and 349 deletions

View file

@ -51,7 +51,8 @@ class Writer(object):
title=title,
link=link,
unique_id=get_tag_uri(link, item.date),
description=item.get_content(self.site_url),
description=item.summary,
content=item.get_content(self.site_url),
categories=item.tags if hasattr(item, 'tags') else None,
author_name=getattr(item, 'author', ''),
pubdate=set_date_tzinfo(