-
Notifications
You must be signed in to change notification settings - Fork 1
/
atom.xml
25 lines (25 loc) · 935 Bytes
/
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
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<subtitle>{{ site.description }}</subtitle>
<link href="{{ '/atom.xml' | prepend: site.baseurl | prepend: site.url }}" rel="self"/>
<link href="{{ site.baseurl | prepend: site.url }}"/>
<id>{{ site.url }}</id>
<updated>{{ site.time | date_to_xmlschema }}</updated>
{% for post in site.posts %}
{% assign author = site.data.authors | where:'name', post.author %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ post.url | prepend: site.baseurl | prepend: site.url }}"/>
<id>{{ post.id | prepend: site.baseurl | prepend: site.url }}</id>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<content type="html">{{ post.content | xml_escape }}</content>
<author>
<name>{{ author[0].name }}</name>
</author>
</entry>
{% endfor %}
</feed>