ametaireau/pelican — Issue #202: Feeds needs LOVE!
Author: Armonth
Created: 2012-01-19 15:20:30+00:00
State: open

I'm in the process of migrate a medium/big spanish blog (+2000 posts but around 25% of content is old/deprecated so don't migrate it) from WordPress to Pelican, first of all i want to say "BIG Thanks" for Pelican: is awesome.

But the feeds needs a little love. By default the generation of feeds is full entrys and without limit of posts...

With only 80 posts the index/pagination (with summarys) is ok (10 pages of 15-16kB) but the feeds with 80 posts and full entrys are now around **335kB**. With 1500-2000 posts the estimated size is... er... painful for download uses. I can't ask at my readers download every day feeds of various mB with thousands of entrys only for see a single new post. Is ridiculous and very few efficient bandwidth-wise...

So I suggest:

- Create a new feed with only the last X posts

FEED_LATEST = 'feeds/atom.latest.xml'
FEED_LATEST_NUMBER_OF_ENTRYS= '5'

This is the only thing I consider ESSENTIALLY.

Anothers things CAN be useful but not essentially:

- Same for RSS / Category feeds / Tags feeds (if is necessary)?
- feed/sitemap.xml implementation?
- GZIP/Deflate for HTML/XML files? (But yeah: you can do on-the-fly with htaccess/apache or add a cronjob/script after the generation of contents).

PD: If you set `LOCALE` and/or `DEFAULT_LANG` to es_ES.UTF-8 (or anything is not the default "en") generates two "all entrys" feeds: all-atom.xml and all-en.xml with same content but I don't use two languages and don't know if is a bug or something...