Skip to content

Instantly share code, notes, and snippets.

@hara
Created April 13, 2013 06:28
Show Gist options
  • Save hara/5377303 to your computer and use it in GitHub Desktop.
Save hara/5377303 to your computer and use it in GitHub Desktop.
A Jekyll page file for Atom Feed.
---
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title | xml_escape }}</title>
<link href="{{ site.url }}" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<author>
<name>{{ site.author | xml_escape }}</name>
</author>
<id>urn:uuid:{{ site.uuid }}</id>
{% for post in site.posts limits: 10 %}
<entry>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ site.url }}{{ site.baseurl }}{{ post.url }}" />
<id>urn:uuid:{{ post.uuid }}</id>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<content type="html" xml:lang="{{ site.lang }}" xml:base="{{ site.url }}">
<![CDATA[{{ post.content }}]]>
</content>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment