Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Tag-specific RSS feeds #44

Closed
mwfogleman opened this issue Jan 3, 2015 · 7 comments
Closed

Feature request: Tag-specific RSS feeds #44

mwfogleman opened this issue Jan 3, 2015 · 7 comments

Comments

@mwfogleman
Copy link

I'd like to add my blog to several topic-specific planets, but they require curated RSS feeds (e.g. the Clojure planet requires only Clojure-related posts). Could Cryogen support this?

@lacarmen
Copy link
Member

lacarmen commented Jan 3, 2015

This should definitely be possible. I could add something like :filtered-rss ["clojure"] to the config file and generate curated RSS feeds based on that along with the main RSS feed that's currently being generated.

@mwfogleman
Copy link
Author

Great, thanks Carmen!

If you are looking on and waiting for this to be a feature, you can use Yahoo Pipes to filter the default, inclusive RSS feed.

@lacarmen
Copy link
Member

lacarmen commented Jan 4, 2015

Should be done with version 0.1.12 of cryogen-core now :)

You would have to add :rss-filters ["clojure"] to your config.edn and of course the filters you list have to match the tags that you're using in your posts. The generated xml files will be named after the tags.

@mwfogleman
Copy link
Author

Wow! I did not expect same-day turnover-- thanks Carmen! Keep up the good work! 👍

@mwfogleman
Copy link
Author

Carmen,

Not sure how I didn't notice until now, but using this feature on my install generates RSS feeds with only the titles and the links.

https://mwfogleman.github.io/Clojure.xml
https://mwfogleman.github.io/Emacs.xml

I did do a hairy upgrade, so it's possible I messed things up.

@mwfogleman mwfogleman reopened this Jan 21, 2015
@lacarmen
Copy link
Member

So I was using (get posts-by-tags filter) to get the posts for each filter, but it turns out posts-by-tags only contained the :uri and :title keys since I originally made that variable for making tag pages.

I've added in the :content key and tested so the filtered rss feeds to get generated properly now. Just bump up cryogen-core to 0.1.19 :)

@mwfogleman
Copy link
Author

Great, thanks so much Carmen.

I took a peek at the bugfix commit- neat to see how this functionality (and presumably much of Cryogen) is implemented with core functions like select-keys, get, reduce, etc. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants