]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - atom_10.tmpl
gen-sitemap: fix a bug: args.exclude can be None
[phdru.name/phdru.name.git] / atom_10.tmpl
index eadc7ce7a78695ad9e2dfe96f4b2167d9253b906..c8bb7db1384815d4a6ae1954e69070a416dff562 100644 (file)
@@ -1,14 +1,16 @@
 <?xml version="1.0" encoding="koi8-r"?>
 <feed xmlns="http://www.w3.org/2005/Atom">
   <title>$title</title>
-  <id>$baseURL</id>
-  <link rel="alternate" type="text/html" href="$baseURL" />
+  <id>$baseURL$indexFile</id>
+  <link rel="self" type="application/atom+xml" href="${baseURL}atom_10.xml" />
+  <link rel="alternate" type="application/rss+xml" href="${baseURL}rss_20.xml" />
+  <link rel="alternate" type="text/html" href="$baseURL$indexFile" />
   <updated>${posts[0].date}T00:00:00Z</updated>
   <author>
     <name>$author</name>
     <email>$email</email>
   </author>
-  <generator uri="http://phd.pp.ru/about/make/make-news.py.txt">http://phd.pp.ru/about/</generator>
+  <generator uri="http://phdru.name/about/make/${generator}.txt">http://phdru.name/about/make/${generator}.txt</generator>
 #for $post in $posts
   <entry>
     <title>$post.title</title>
 #filter WebSafe
 $post.excerpt
 &lt;p&gt;&lt;a href="$post.URL"&gt;Read more&lt;/a&gt;&amp;hellip;&lt;/p&gt;
-#filter Filter
+#end filter
     </summary>
 #end if
 #if $post.content
     <content type="html" mode="escaped">
 #filter WebSafe
 $post.content
-#filter Filter
+#end filter
     </content>
 #end if
 #for $c in $post.categoryList