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)
""" % (tag, tag, tag)]
count = 0
- for link in reversed(links):
- junk, year, month, day, filename = link.split('/')
- item_text = """<li><a href="%s">%s/%s/%s: %s</a></li>""" % (link, year, month, day, filename)
+ for year, month, day, filename, title, lead in reversed(links):
+ if lead:
+ lead = lead + ' '
+ else:
+ lead = ''
+ link = "../%s/%s/%s/%s" % (year, month, day, filename)
+ item_text = """<li><a href="%s">%s/%s/%s: %s%s</a></li>""" % (link, year, month, day, lead, title)
count += 1
if count <= 5: