forked from Scalpelcn/Farbox-Simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.html
23 lines (22 loc) · 848 Bytes
/
feed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="http://{{ request.host }}/"/>
<link href="http://{{ request.host }}/feed" rel="self" />
<id>{{ request.host }}</id>
{% if posts %}
<updated>{{ posts[0]['date'].strftime('%Y-%m-%dT%H:%M:%SZ')}}</updated>
{% endif %}
{% for post in posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://{{ request.host }}{{ post.url }}" rel="alternate"></link>
<updated>{{ post.date.strftime('%Y-%m-%dT%H:%M:%SZ')}}</updated>
<id>{{ post.url_path }}</id>
<author>
<name>{{ site.configs.author or site.title}}</name>
</author>
<summary type="html">{{ post.content | escape }}</summary>
</entry>
{% endfor %}
</feed>