Echo Writes Code

list_atom_feed.tera.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="http://www.w3.org/2005/Atom">
	<title>{{ list.name }} | {{ site.name }}</title>
	<link rel="alternate" href="{{ list.link | safe }}" />
	<updated>{{ list.updated }}</updated>

	<author>
		<name>{{ site.author }}</name>
	</author>

	<id>{{ list.syndication_id | safe }}</id>

	{% for item in list.items %}
	<entry>
		<title type="html">{{ item.name }}</title>
		<link rel="alternate" href="{{ item.link | safe }}" />
		<id>{{ item.syndication_id | safe }}</id>
		<published>{{ item.published }}</published>
		<updated>{{ item.updated }}</updated>
		<summary type="html">{{ item.summary }}</summary>
		{% if item.content %}
		<content type="html">{{ item.content }}</content>
		{% endif %}
	</entry>
	{% endfor %}
</feed>