Skip to content

Instantly share code, notes, and snippets.

@5minpause
Created June 8, 2012 15:42
Show Gist options
  • Save 5minpause/2896245 to your computer and use it in GitHub Desktop.
Save 5minpause/2896245 to your computer and use it in GitHub Desktop.
RSS.xml definition for octopress feed
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" xmlns:atom="http://www.w3.org/2005/Atom"/>
<title>{{ site.title | xml_escape }}</title>
<generator>Octopress</generator>
<link>{{ site.url }}</link>
{% for post in site.posts limit: 20 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | expand_urls: site.url | cdata_escape }}</description>
<link>{{ site.url }}{{ post.url }}</link>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<guid>{{ site.url }}{{ post.id }}</guid>
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment