From: Oleg Broytman Date: Fri, 3 Mar 2006 18:39:05 +0000 (+0000) Subject: Add Next. X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=commitdiff_plain;h=5faf4c8009c5611a006d5382eb55657add31799f Add Next. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@15 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/reindex_blog.py b/reindex_blog.py index b21f4f6..98d1181 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -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"