Created
April 26, 2011 11:24
-
-
Save cypher/942123 to your computer and use it in GitHub Desktop.
Jekyll Atom Feed example
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"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>The Nuclear Squid</title> | |
<link href="http://nuclearsquid.com/feed.xml" rel="self"/> | |
<link href="http://nuclearsquid.com/"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> | |
<id>http://nuclearsquid.com/</id> | |
<author> | |
<name>Markus Prinz</name> | |
<email>[email protected]</email> | |
</author> | |
{% for post in site.posts %} | |
<entry> | |
<title>{{ post.title }}</title> | |
<link href="http://nuclearsquid.com/{{ post.url }}"/> | |
<updated>{{ post.date | date_to_xmlschema }}</updated> | |
<id>http://nuclearsquid.com/{{ 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
nice. I was wondering how you did that ...