Echo Writes Code

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>{{ feed.name }} | {{ site.name }}</title>
	<link rel="alternate" href="{{ feed.link | safe }}" />
	<updated>{{ feed.updated }}</updated>

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

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

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