X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=blobdiff_plain;f=tags.py;h=dec88988ffca1bdc18b68e7e0724bbfd07a7b09a;hp=e1d5dd11eaa625d321a49cff9bbe0249feaffefc;hb=3d1095e88653ea5e0c999ba65ad6406163ecc447;hpb=e5587d550bf2bd6b426fafc6907e937bcc2d5ec9 diff --git a/tags.py b/tags.py index e1d5dd1..dec8898 100644 --- a/tags.py +++ b/tags.py @@ -59,7 +59,8 @@ def find_tags(tree): for post in posts: if _test_post(post, tree): _posts.append(( - '/'.join((year, month, day, post[0].replace('.tmpl', '.html'))), + year, month, day, + '/'.join((year, month, day, post[0][:-len("tmpl")] + "html")), post[1])) _posts.sort(reverse=True) return _posts