From 5faf4c8009c5611a006d5382eb55657add31799f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 3 Mar 2006 18:39:05 +0000 Subject: [PATCH] Add Next. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@15 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- reindex_blog.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" -- 2.39.2