]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - reindex_blog.py
Add Next.
[phdru.name/phdru.name.git] / reindex_blog.py
index b21f4f6d245d269e9d130f616a119f0993ed92d0..98d118131ce4e70fd2e946eb64c144de42f0b476 100755 (executable)
@@ -30,7 +30,9 @@ else:
    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 = {}
 
@@ -154,6 +156,11 @@ def write_template(level, year, month, day, titles):
       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"