From 9cbc71157e16135666af89df34bb8152dbca67a5 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Mon, 18 May 2009 21:24:58 +0200 Subject: Added 'entry' container around each entry --- blogthon.cgi | 57 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/blogthon.cgi b/blogthon.cgi index a56dc28..b111ac2 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -1,3 +1,4 @@ +w #!/usr/bin/python # This program is free software. It comes without any warranty, to @@ -290,19 +291,19 @@ else: # Staticpage if static_display != "": content = open(staticpages_dir + static_display, "r") - print '
' + re.sub('\d+?-', '', static_display) + '
' - print '
' - print '

' + print '

' + print '
' + re.sub('\d+?-', '', static_display) + '
' + print '
' + print '

' for line in content: - print ' ' + line.strip() + '
' - print '

' - print '
' - print ' ' - print '
' - print '
' - print '
' - print '
' - print '
' + print ' ' + line.strip() + '
' + print '

' + print '
' + print ' ' + print '
' + print '
' + print '
' + print '
' content.close() # Entry else: @@ -318,20 +319,20 @@ else: if post_display == title or not post_display: if allentries_display == "1" or entry_counter < entries_per_page: content = open(entry, "r") + print '
' if permalinks: - print '
' + title + '
' + print '
' + title + '
' else: - print '
' + title + '
' - print '
' + print '
' + title + '
' + print '
' for line in content: - print ' ' + line.strip() + '
' - print '
' - print ' ' - print '
' - print '
' - print '
' - print '
' - print '
' + print ' ' + line.strip() + '
' + print '
' + print ' ' + print '
' + print '
' + print '
' + print '
' # Comments... # ... are shown when post_display and comments_file isn't false @@ -374,8 +375,9 @@ else: if comments == "True": comments_file = glob.glob(entries_dir + title + '.comments') if not comments_file and not post_display: - print '
' - print ' no comments' + print '
' + print ' no comments' + print '
' print '
' print '' elif comments_file and not post_display: @@ -383,8 +385,9 @@ else: comments_counter = 0 for line in comments_content: if line.split(".", 1)[0] == "-": comments_counter += 1 - print '
' - print ' comments (' + str(comments_counter) + ')' + print '
' + print ' comments (' + str(comments_counter) + ')' + print '
' print '
' print '' comments_content.close() -- cgit v1.2.3