X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reindex_blog.py;h=291e182eee8ddffff655114f347e50b9da54b97a;hb=e968f29c9bd237139cd9a7f662562f69ecdc057c;hp=c2e16ce32c35029bb31d05f382f46e4d65e55617;hpb=f85b54d41b553cd6d9cdc43a2b16c2675bb99216;p=phdru.name%2Fphdru.name.git diff --git a/reindex_blog.py b/reindex_blog.py index c2e16ce..291e182 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -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]: