Added 'entry' container around each entry
This commit is contained in:
parent
03a1d02ee3
commit
9cbc71157e
@ -1,3 +1,4 @@
|
||||
w
|
||||
#!/usr/bin/python
|
||||
|
||||
# This program is free software. It comes without any warranty, to
|
||||
@ -290,6 +291,7 @@ else:
|
||||
# Staticpage
|
||||
if static_display != "":
|
||||
content = open(staticpages_dir + static_display, "r")
|
||||
print ' <div class="entry">'
|
||||
print ' <div class="entry_title">' + re.sub('\d+?-', '', static_display) + '</div>'
|
||||
print ' <div class="entry_content">'
|
||||
print ' <p>'
|
||||
@ -298,7 +300,6 @@ else:
|
||||
print ' </p>'
|
||||
print ' </div>'
|
||||
print ' <div class="entry_footer"></div>'
|
||||
print ' <div class="entry_comments"></div>'
|
||||
print ' <div class="entry_border_left"></div>'
|
||||
print ' <div class="entry_border_right"></div>'
|
||||
print ' <div class="entry_border_top"></div>'
|
||||
@ -318,6 +319,7 @@ else:
|
||||
if post_display == title or not post_display:
|
||||
if allentries_display == "1" or entry_counter < entries_per_page:
|
||||
content = open(entry, "r")
|
||||
print ' <div class="entry">'
|
||||
if permalinks:
|
||||
print ' <div class="entry_title"><a href="?p=' + title + '" class="entry_title">' + title + '</a></div>'
|
||||
else:
|
||||
@ -327,7 +329,6 @@ else:
|
||||
print ' ' + line.strip() + '<br />'
|
||||
print ' </div>'
|
||||
print ' <div class="entry_footer"></div>'
|
||||
print ' <div class="entry_comments"></div>'
|
||||
print ' <div class="entry_border_left"></div>'
|
||||
print ' <div class="entry_border_right"></div>'
|
||||
print ' <div class="entry_border_top"></div>'
|
||||
@ -377,6 +378,7 @@ else:
|
||||
print ' <div class="entry_comments">'
|
||||
print ' <a href="?p=' + title + '" class="entry_comments">no comments</a>'
|
||||
print ' </div>'
|
||||
print ' </div>'
|
||||
print ''
|
||||
elif comments_file and not post_display:
|
||||
comments_content = open(comments_file[0], "r")
|
||||
@ -386,6 +388,7 @@ else:
|
||||
print ' <div class="entry_comments">'
|
||||
print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>'
|
||||
print ' </div>'
|
||||
print ' </div>'
|
||||
print ''
|
||||
comments_content.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user