-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
feed.xml
28 lines (24 loc) · 1.17 KB
/
feed.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
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="https://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
{% if site.subtitle %}<subtitle>{{ site.subtitle }}</subtitle>{% endif %}
<link rel="alternate" href="{{ get_url(absolute=true) }}" />
<link rel="self" href="{{ get_url('feed.xml', true) }}" type="application/atom+xml" />
<id>{{ get_url(absolute=true) }}</id>
<updated>{{ none|date('%Y-%m-%dT%H:%M:%SZ') }}</updated>
<author>
<name>{{ site.author }}</name>
{% if site.email %}<email>{{ site.email }}</email>{% endif %}
<uri>{{ get_url(absolute=true) }}</uri>
</author>
{% for post in posts %}
<entry>
<title>{{ post.title|escape }}</title>
<link rel="alternate" href="{{ get_url(post.url, true) }}" type="text/html" />
<id>{{ get_url(post.url, true) }}</id>
<updated>{{ post.timestamp|date('%Y-%m-%dT%H:%M:%SZ') }}</updated>
{% if post.excerpt %}<summary type="html">{{ post.excerpt|absolutize|escape }}</summary>{% endif %}
<content type="html">{{ post.content|absolutize|escape }}</content>
</entry>
{% endfor %}
</feed>