From 3d1095e88653ea5e0c999ba65ad6406163ecc447 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 May 2014 18:23:40 +0400 Subject: [PATCH] Return y/m/d --- tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2