-
Notifications
You must be signed in to change notification settings - Fork 14
/
atom.xml
37 lines (37 loc) · 1.07 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Chris Beams</title>
<link href="{{ site.feedurl }}" rel="self"/>
<link href="{{ site.url }}"/>
<id>{{ site.url }}</id>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<author>
<name>Chris Beams</name>
<email>[email protected]</email>
</author>
{% for post in site.posts %}
{% unless post.featured == false %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<id>{{ site.url }}{{ post.id }}</id>
{% for category in post.categories %}
<category term="{{ category }}"/>
{% endfor %}
{% for tag in post.tags %}
<category term="{{ tag }}"/>
{% endfor %}
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.updated %}
<updated>{{ post.updated | date_to_xmlschema }}</updated>
{% else %}
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% endif %}
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endunless %}
{% endfor %}
</feed>