imathis/octopress — Issue #431: Break atom feeds with excerpt filter
Author: alblue
Created: 2012-02-17 22:33:33+00:00
State: open

The atom.xml files contain a full transcript, yet the front page can be configured to show an excerpt. It would be good if this could be limited as well.

For the atom.xml files in the default template:

- {{ post.content | expand_urls: site.url | markdownify | cdata_escape }}
+ {{ post.content | excerpt | expand_urls: site.url | markdownify | cdata_escape }}

In the _includes/custom/category_feed.xml:

- {{ post.content | expand_urls: site.url | cdata_escape }}
+ {{ post.content | excerpt | expand_urls: site.url | cdata_escape }}

This gives a truncated view of the feeds, such as http://alblue.bandlem.com/atom.xml and http://alblue.bandlem.com/Tag/eclipse/atom.xml