Skip to content

Instantly share code, notes, and snippets.

@lucaspiller
Created February 26, 2014 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaspiller/9229838 to your computer and use it in GitHub Desktop.
Save lucaspiller/9229838 to your computer and use it in GitHub Desktop.
Octopress, export all posts as RSS
---
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 %}
<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