From: Oleg Broytman Date: Wed, 22 Mar 2006 20:44:36 +0000 (+0000) Subject: Separate generators links for news and the blog. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0d40d95940a4d1000134b9ede06cf6cff512dc1b;p=phdru.name%2Fphdru.name.git Separate generators links for news and the blog. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@43 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/atom_10.tmpl b/atom_10.tmpl index b4b040a..ae5ea1e 100644 --- a/atom_10.tmpl +++ b/atom_10.tmpl @@ -10,7 +10,7 @@ $author $email - http://phd.pp.ru/about/ + http://phd.pp.ru/about/make/${generator}.txt #for $post in $posts $post.title diff --git a/make-news.py b/make-news.py index 50890ec..5d196bf 100755 --- a/make-news.py +++ b/make-news.py @@ -68,6 +68,7 @@ namespace = { "lang": lang, "author": "Oleg Broytmann", "email": "phd@phd.pp.ru", + "generator": os.path.basename(sys.argv[0]), "posts": news_items, } diff --git a/reindex_blog.py b/reindex_blog.py index b5ba18e..b75104d 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -401,6 +401,7 @@ namespace = { "lang": "ru", "author": "Oleg Broytmann", "email": "phd@phd.pp.ru", + "generator": os.path.basename(sys.argv[0]), "posts": items, } diff --git a/rss_20.tmpl b/rss_20.tmpl index 5fa26ff..e1779be 100644 --- a/rss_20.tmpl +++ b/rss_20.tmpl @@ -7,7 +7,7 @@ $lang $author <$email> ${posts[0].rfc822_date} - http://phd.pp.ru/about/make/make-news.py.txt + http://phd.pp.ru/about/make/${generator}.txt #for $post in $posts $post.title