<?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/news.html</id>
+ <link rel="self" type="application/atom+xml" href="$baseURL/atom_10.xml" />
+ <link rel="alternate" type="text/html" href="$baseURL/news.html" />
<updated>${posts[0].date}T00:00:00Z</updated>
<author>
<name>$author</name>
namespace = {
"title": "Oleg Broytmann's Personal Page - News",
- "baseURL": "http://phd.pp.ru/news.html",
+ "baseURL": "http://phd.pp.ru",
"description": "",
"lang": lang,
"author": "Oleg Broytmann",
"posts": news_items,
}
+if lang == "ru":
+ namespace["title"] = "Oleg Broytmann's Personal Page - Russian News"
+ namespace["baseURL"] = "http://phd.pp.ru/Russian"
+
atom_tmpl = str(atom_10(searchList=[namespace]))
write_if_changed(os.path.join(root, "atom_10.xml"), atom_tmpl)
rss_tmpl = str(rss_20(searchList=[namespace]))
<rss version="2.0">
<channel>
<title>$title</title>
- <link>$baseURL</link>
+ <link>$baseURL/news.html</link>
<description>$description</description>
<language>$lang</language>
<webMaster>$author <$email></webMaster>