Skip to content

Instantly share code, notes, and snippets.

@tuananh
Created February 25, 2011 11:35
Show Gist options
  • Save tuananh/843679 to your computer and use it in GitHub Desktop.
Save tuananh/843679 to your computer and use it in GitHub Desktop.
rss feed for jekyll
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.sitename }} | {{ site.tagline }}</title>
<link href="{{ site.url }}atom.xml" rel="self"/>
<link href="{{ site.url }}"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://tuananh.ws</id>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment