Created
July 3, 2012 16:09
-
-
Save 5minpause/3040707 to your computer and use it in GitHub Desktop.
rss xml generator for jekyll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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> | |
<description>{{ site.subtitle }}</description> | |
{% for post in site.posts limit: 20 %} | |
<item> | |
<title>{{ post.title | xml_escape }}</title> | |
<description><![CDATA[{{ post.content | expand_urls: site.url }}]]></description> | |
<link>{{ site.url }}{{ post.url }}</link> | |
<pubDate>{{ post.date | date_to_rfc822 }}</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