From: Oleg Broytman Date: Fri, 4 Aug 2017 16:39:11 +0000 (+0300) Subject: Fix(blog): Fix base URL for Russian blog X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b0f6761ec25c37779fc4ba3a8b4ff1cda0a401ef;p=phdru.name%2Fphdru.name.git Fix(blog): Fix base URL for Russian blog --- diff --git a/reindex_blog.py b/reindex_blog.py index c2e16ce..ab257d5 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -525,7 +525,9 @@ from rss_20 import rss_20 from news import NewsItem if blog_root: - baseURL = "http://phdru.name/%s/" % blog_root + blog_root_url = blog_root[ + blog_root.find('/htdocs/phdru.name/') + len('/htdocs/phdru.name/'):] + baseURL = "http://phdru.name/%s/" % blog_root_url else: baseURL = "http://phdru.name/"