X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=tags.py;h=dec88988ffca1bdc18b68e7e0724bbfd07a7b09a;hb=545bc557079d3390968e3c09b3e5de9a94d4d46b;hp=d8a14f497b7e18a76bc96b3df7a9be2a978d4c33;hpb=2048bdab9fd223397272450758514bc962e8eb30;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git diff --git a/tags.py b/tags.py index d8a14f4..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() + _posts.sort(reverse=True) return _posts