]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - reindex_blog.py
Style(phd.py): Fix `flake8` warnings
[phdru.name/phdru.name.git] / reindex_blog.py
index c2e16ce32c35029bb31d05f382f46e4d65e55617..291e182eee8ddffff655114f347e50b9da54b97a 100755 (executable)
@@ -525,9 +525,11 @@ 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 = "https://phdru.name/%s/" % blog_root_url
 else:
-   baseURL = "http://phdru.name/"
+   baseURL = "https://phdru.name/"
 
 items = []
 for item in tuple(reversed(all_titles_tags))[:10]: