]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - make-news.py
Made baseURL language-dependent directory. Added link to self.
[phdru.name/phdru.name.git] / make-news.py
index 14c3cf78b0ca294c1fd260c2e491f0a0c68498de..a654c26720b50253c1475dcd3fe17a6fdb65db8e 100755 (executable)
@@ -40,7 +40,7 @@ from rss_20 import rss_20
 
 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",
@@ -48,6 +48,10 @@ namespace = {
    "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]))