]> git.phdru.name Git - phdru.name/phdru.name.git/blob - atom_10.tmpl
News feeds in Atom 1.0 and RSS 2.0 formats.
[phdru.name/phdru.name.git] / atom_10.tmpl
1 <?xml version="1.0" encoding="koi8-r"?>
2 <feed xmlns="http://www.w3.org/2005/Atom">
3   <title>$title</title>
4   <id>$baseURL</id>
5   <link rel="alternate" type="text/html" href="$baseURL" />
6   <updated>${posts[0].date}T00:00:00Z</updated>
7   <author>
8     <name>$author</name>
9     <email>$email</email>
10   </author>
11   <generator uri="http://phd.pp.ru/about/make/make-news.py.txt">http://phd.pp.ru/about/</generator>
12 #for $post in $posts
13   <entry>
14     <title>$post.title</title>
15     <link rel="alternate" type="text/html" href="$post.URL" />
16     <id>$post.URL</id>
17     <updated>${post.date}T00:00:00Z</updated>
18 #if $post.excerpt
19     <summary type="html" mode="escaped">
20 #filter WebSafe
21 $post.excerpt
22 &lt;p&gt;&lt;a href="$post.URL"&gt;Read more&lt;/a&gt;&amp;hellip;&lt;/p&gt;
23 #filter Filter
24     </summary>
25 #end if
26 #if $post.content
27     <content type="html" mode="escaped">
28 #filter WebSafe
29 $post.content
30 #filter Filter
31     </content>
32 #end if
33 #for $c in $post.categoryList
34     <category term="$c" />
35 #end for
36   </entry>
37 #end for
38 </feed>