X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reindex_blog.py;h=4451baa740e25f20b60be92b3699fc69e4ca2413;hb=b4c1e4de6a50d04c81519eaf3dc440cca1e38da4;hp=f554bc32a85323a737036999eb563007ef9f688f;hpb=338269ecdb539e349db2e0237dbefc70906320e2;p=phdru.name%2Fphdru.name.git diff --git a/reindex_blog.py b/reindex_blog.py index f554bc3..4451baa 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -279,7 +279,7 @@ for year in sorted(years.keys()): tag_links = all_tags[tag] else: tag_links = all_tags[tag] = [] - tag_links.append('/'.join(("..", year, month, day, file))) + tag_links.append(value) write_template(3, year, month, day, day_titles) write_template(2, year, month, day, month_titles) write_template(1, year, month, day, year_titles) @@ -298,11 +298,14 @@ new_text = ["""\ ## #def body_html

ôÅÇÉ

+ +

+

"""] for count, tag, links in all_tags: - new_text.append(""" -

%s (%d)

+ new_text.append("""\ +
%s (%d)
""" % (tag, tag, count)) tag_text = ["""\ @@ -315,21 +318,37 @@ for count, tag, links in all_tags: ## #def body_html

%s

+ +

+

+

#end def $phd_pp_ru.respond(self) """) write_if_changed(os.path.join("tags", tag+".tmpl"), ''.join(tag_text)) new_text.append("""\ +
+

#end def $phd_pp_ru.respond(self) """)