blog_file.close()
-# blog is a dictionary mapping (year, month, day) => (filename, title, lead)
+# blog is a dictionary mapping
+# (year, month, day) => [list of (filename, title, lead)]
+
blog = {}
years = {}
iday = int(day)
imonth = int(month)
+ new_text.append("""\
+#attr $Next = "%s"
+""" % titles[0][3])
+
+
if len(titles) == 1:
new_text.append("""\
#attr $refresh = "0; URL=%s"