Home » Projekte » Webber » Plugins » rss_feed.py

RSS feed generator

This plugins write an XML file "feed.rss" (can be changed) into the out-directory. The format is according to the RSS feed documentation at http://www.rssboard.org/rss-specification.

Configuration 

Please make sure to enable this plugin:

plugins: [
         ...
            "rss_feed",
        ]

After this, the following three Configurations are available:

rss_file 

The rss feed can use the configuration entry rss_file to specify the path of the generated file.

rss_file: "rss.xml"

The default is "feed.rss".

rss_max_items 

Here you can specify how many items (articles) are written into the RSS feed.

rss_max_items: 10

If you don't configure this, then the number of published articles won't be limited.

rss_max_age_days 

Here you specify (in days) how young an article must be in order to be published via RSS.

rss_max_age_days: 28

If you don't configure this, then any article will be limited, regardless of it's age.

Support in the template 

Your Mako templates should mention your rss feed. One possible solution is this:


...


Example of output 





Holger Schurig's Computer Calisthenics & Orthodontia
https://holgerschurig.de
Holger Schurig's Computer Calisthenics & Orthodontia
Wed, 23 Jun 2010 08:59:24 GMT
PyRSS2Gen-1.0.0
http://blogs.law.harvard.edu/tech/rss

QtIAX
https://holgerschurig.de/qtiax.html

https://holgerschurig.de/qtiax.html 1260652641
Sat, 12 Dec 2009 21:17:21 GMT

Â