Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Last active August 29, 2015 14:10
Show Gist options
  • Save destroytoday/6232c6aec20236245e9d to your computer and use it in GitHub Desktop.
Save destroytoday/6232c6aec20236245e9d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xml:base="{{ site.permalink }}">
<channel>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.permalink }}</link>
<description>{{ site.description | xml_escape }}</description>
<pubDate>{{ site.date | date_to_rfc822 }}</pubDate>
{% for post in site.pages.journal.posts limit: 10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ post.permalink }}</link>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<author>{{ post.user.firstname | xml_escape }} {{ post.user.lastname | xml_escape }}</author>
<guid>{{ post.permalink }}</guid>
<description>{{ post.body | xml_escape }}</description>
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment