]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Add Next.
authorOleg Broytman <phd@phdru.name>
Fri, 3 Mar 2006 18:39:05 +0000 (18:39 +0000)
committerOleg Broytman <phd@phdru.name>
Fri, 3 Mar 2006 18:39:05 +0000 (18:39 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@15 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

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"