ruhoh / ruhoh.rb

http://ruhoh.com
616 stars 69 forks source link

Customizable RSS feeds #70

Open dickfeynman opened 12 years ago

dickfeynman commented 12 years ago

I would like to suggest a feature. Instead of having an RSS for the whole site, it would be nice to have RSS feeds for different categories/tags, so readers can subscribe to a subsection of posts.

dickfeynman commented 12 years ago

I wonder if there is a generic way (while subscribing) to filter posts from an RSS feed by specific properties in metadata. I'm not aware of any solution. If that's possible, then the blog generator (ruhoh) need not concern itself with this.

Else, it would be great if we can have ruhoh generate feeds based on custom specifications. Maybe this could/should be implemented as a plugin :-?

Meroje commented 12 years ago

I did something like that for sitemap generation, very messy but working code visible on my fork. A really useful use of multiple rss feeds would be to have "series", it will make a great addition.

dickfeynman commented 12 years ago

@Meroje How do I find the file/commit with the relevant changes you made?

I have made small tweaks to the lib/ruhoh/compilers/rss.rb file so that it also displays the categories and tags with each post, along with it's description (all inside the summary). With this setup, I'm thinking of sifting through the generated rss.xml to filter as necessary. This part could be implemented as an addon, I think.

An alternate setup I can think of is having an rss.xml functionality for each category where http://foo.ruhoh.com/cat1/rss.xml will give the RSS feed corresponding to that category. There are 2 snags with this solution:

  1. This will give only category specific feeds, and not complete power to filter as necessary.
  2. The sensible way to implement this (imho) will be while posts are parsed and put into correspondind category folders. Which would mean this feature has to be a part of ruhoh, rather than an addon. I think having it as an addon will be cleaner.
plusjade commented 11 years ago

+1 I'll keep this open in hopes it inspires a plugin that allows for RSS-on-steroids so to speak. Thanks for the great suggestions (and sorry for the absurdly late reply).