Skip to content

Instantly share code, notes, and snippets.

@cypher
Created April 26, 2011 11:24
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 cypher/942123 to your computer and use it in GitHub Desktop.
Save cypher/942123 to your computer and use it in GitHub Desktop.
Jekyll Atom Feed example
---
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>markus.prinz@nuclearsquid.com</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>
@bobschi
Copy link

bobschi commented May 1, 2011

nice. I was wondering how you did that ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment