]> git.phdru.name Git - phdru.name/phdru.name.git/blob - atom_10.tmpl
For urljoin() to remove ".." components baseURL must ends in a slash.
[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}news.html</id>
5   <link rel="self" type="application/atom+xml" href="${baseURL}atom_10.xml" />
6   <link rel="alternate" type="text/html" href="${baseURL}news.html" />
7   <updated>${posts[0].date}T00:00:00Z</updated>
8   <author>
9     <name>$author</name>
10     <email>$email</email>
11   </author>
12   <generator uri="http://phd.pp.ru/about/make/make-news.py.txt">http://phd.pp.ru/about/</generator>
13 #for $post in $posts
14   <entry>
15     <title>$post.title</title>
16     <link rel="alternate" type="text/html" href="$post.URL" />
17     <id>$post.URL</id>
18     <updated>${post.date}T00:00:00Z</updated>
19 #if $post.excerpt
20     <summary type="html" mode="escaped">
21 #filter WebSafe
22 $post.excerpt
23 &lt;p&gt;&lt;a href="$post.URL"&gt;Read more&lt;/a&gt;&amp;hellip;&lt;/p&gt;
24 #filter Filter
25     </summary>
26 #end if
27 #if $post.content
28     <content type="html" mode="escaped">
29 #filter WebSafe
30 $post.content
31 #filter Filter
32     </content>
33 #end if
34 #for $c in $post.categoryList
35     <category term="$c" />
36 #end for
37   </entry>
38 #end for
39 </feed>