X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=make-news.py;fp=make-news.py;h=a654c26720b50253c1475dcd3fe17a6fdb65db8e;hb=faddebc2adacabf004ebe485bc882c5f384da463;hp=14c3cf78b0ca294c1fd260c2e491f0a0c68498de;hpb=05a4da3383295e6c0fddf87f1893293b39822078;p=phdru.name%2Fphdru.name.git diff --git a/make-news.py b/make-news.py index 14c3cf7..a654c26 100755 --- a/make-news.py +++ b/make-news.py @@ -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]))