From 3118c4faf912213683061c76248d70adcee78340 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 22 Feb 2004 00:18:18 +0000 Subject: Implement a 'draft' article category for submitted but unpublished stuff. If you create an entry with year=='forthcoming', it will appear in a year called "Forthcoming", in the CSS class 'draftEntry'. Add draft-tor-design-2004 as an example. svn:r88 --- writeHTML.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'writeHTML.py') diff --git a/writeHTML.py b/writeHTML.py index 543857a..9f6a0fa 100644 --- a/writeHTML.py +++ b/writeHTML.py @@ -102,8 +102,11 @@ f.close() entries = BibTeX.sortEntriesByDate(bib.entries) entries = BibTeX.splitSortedEntriesBy(entries, 'year') -if entries[-1][0].startswith(""): - entries[-1] = ("Unknown", entries[-1][1]) +for idx in -1, -2: + if entries[idx][0].startswith(""): + entries[idx] = ("Unknown", entries[idx][1]) + elif entries[idx][0].startswith("forthcoming"): + entries[idx] = ("Forthcoming", entries[idx][1]) sections = [ ent[0] for ent in entries ] first_year = int(entries[0][1][0]['year']) -- cgit v1.2.3-70-g09d2