X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd.py;h=0a6a4e54de9415790155401a26dba3a57c95496f;hb=7127c2a2c65d8af2e18f2ca68328dc03e0465e60;hp=7954e70bc8c8525338df55dd40e85a16a9b7729c;hpb=e1630324d6e4e0c83d68f59bc87a222f89874a2e;p=phdru.name%2Fphdru.name.git diff --git a/phd.py b/phd.py index 7954e70..0a6a4e5 100644 --- a/phd.py +++ b/phd.py @@ -31,7 +31,7 @@ class phd(Template): if dirs_to_root: root = "../"*dirs_to_root else: - root = '' + root = './' self.root = root path = '/'.join(directories) + '/' + \ self._fileBaseName.replace(".tmpl", ".html") @@ -111,7 +111,7 @@ class phd(Template): # blog post is ['', 'Russian', 'blog', year, month, day, filename] if len(dirs) != 7: # Not a blog post return None, None, None, None - ymd = tuple(dirs[3:-1]) + ymd = tuple(dirs[3:6]) filename = self._fileBaseName prev_key = prev_blog_post = current_key = current_blog_post = \ @@ -166,7 +166,7 @@ class phd(Template): % quote_string(query) def lurkmoar(self, query): - return "https://lurkmore.to/%s" % quote_string( + return "http://lurklurk.com/%s" % quote_string( query.replace(' ', '_'), ext_safe=',')