Skip to content

Instantly share code, notes, and snippets.

@geerteltink
Created November 1, 2014 21:34
Show Gist options
  • Save geerteltink/56e7222e9a8200577518 to your computer and use it in GitHub Desktop.
Save geerteltink/56e7222e9a8200577518 to your computer and use it in GitHub Desktop.
Jekyll Atom feed
<!doctype html>
<html lang="en">
<head>
<!-- Other head stuff here -->
<link rel="alternate" type="application/atom+xml" title="News Feed" href="{{ site.url }}/site/feed.xml" />
</head>
<body>
<!-- Content -->
</body>
</html>
---
layout: none
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
<title>{{ site.name | xml_escape }}</title>
<subtitle type="text">{{ site.description | xml_escape }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<link type="application/atom+xml" href="{{ site.url | uri_escape }}/site/feed.xml" rel="self" />
<link type="text/html" href="{{ site.url | uri_escape }}" rel="alternate"/>
<id>{{ site.url | uri_escape }}/</id>
<generator uri="http://jekyllrb.com/">Jekyll</generator>
<rights>Copyright (c) {{ site.time | date: "%Y" }} Geert Eltink. All Rights Reserved.</rights>
{% for post in site.posts limit:10 %}
<entry>
<title type="html"><![CDATA[{{ post.title }}]]></title>
<link href="{{ site.url | uri_escape }}{{ post.url | uri_escape }}" />
<id>{{ site.url | uri_escape }}{{ post.url | uri_escape }}</id>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<author>
<name>Geert Eltink</name>
<uri>{{ site.url | uri_escape }}</uri>
</author>
<summary type="html"><![CDATA[{{ post.summary }}]]></summary>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment