First attempt at creating per-category Atom feeds. #201

Merged
merged 2 commits into from Oct 16, 2011

Conversation

Projects
None yet
2 participants
@mikl
Contributor

mikl commented Oct 4, 2011

One of the things I've missed from Octopress is per-category RSS/Atom feeds. Many open source projects have "planet" sites where they aggregate community blogs, but they want a feed of only the relevant posts – Planet Drupal only wants posts about Drupal, for example.

This is my first Ruby code ever, so I more or less expect that I've done something horrible here, but it does work, and I'm currently in the process of deploying it to my own blog.

So I'd really like to hear how this could be improved :)

+ <link href="{{ site.url }}{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}{{ post.id }}</id>
+ <content type="html"><![CDATA[{{ post.content | expand_urls: site.url | markdownify | cdata_escape }}]]></content>

This comment has been minimized.

@mikl

mikl Oct 4, 2011

Contributor

I had to add markdownify here to get my content rendered properly. This confounds me, since the other templates that I've looked at didn't have to do this.

@mikl

mikl Oct 4, 2011

Contributor

I had to add markdownify here to get my content rendered properly. This confounds me, since the other templates that I've looked at didn't have to do this.

fhemberger added a commit that referenced this pull request Oct 16, 2011

Merge pull request #201 from mikl/category-feeds
Adds per-category Atom feeds.

@fhemberger fhemberger merged commit d84daa2 into imathis:master Oct 16, 2011

@fhemberger

This comment has been minimized.

Show comment
Hide comment
@fhemberger

fhemberger Oct 16, 2011

Contributor

Cool feature, thanks!

Contributor

fhemberger commented Oct 16, 2011

Cool feature, thanks!

briansimmons pushed a commit to briansimmons/octopress that referenced this pull request Aug 20, 2013

Merge pull request #201 from mikl/category-feeds
Adds per-category Atom feeds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment