forked from econchick/roguelynn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
33 lines (30 loc) · 1.32 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
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Blog of Lynn Root</title>
<subtitle>Homepage and blog of Lynn Root. Coder, writer, speaker, and PyLady of San Francisco.</subtitle>
<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>Lynn Root</name>
<email>lynn[at]lynnroot[dot]com</email>
<uri>{{ get_url(absolute=true) }}</uri>
</author>
{% for post in posts %}
{% if 'words' in post.category %}
<entry>
<title type="html">{{ 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>
<author>
<name>Lynn Root</name>
<email>lynn[at]lynnroot[dot]com</email>
<uri>{{ get_url(absolute=true) }}</uri>
</author>
<content type="html">{{ post.content|absolutize|escape }}</content>
</entry>
{% endif %}
{% endfor %}
</feed>