Added commentlinks
This commit is contained in:
parent
c8cd647d70
commit
fb1a6d9c56
@ -30,6 +30,7 @@ monthlist = configuration.get('look', 'monthlist')
|
|||||||
staticpages = configuration.get('look', 'staticpages')
|
staticpages = configuration.get('look', 'staticpages')
|
||||||
linklist = configuration.get('look', 'linklist')
|
linklist = configuration.get('look', 'linklist')
|
||||||
permalinks = configuration.get('look', 'permalinks')
|
permalinks = configuration.get('look', 'permalinks')
|
||||||
|
comments = configuration.get('look', 'comments')
|
||||||
newest_first = configuration.get('look', 'newest_first')
|
newest_first = configuration.get('look', 'newest_first')
|
||||||
|
|
||||||
action = cgi.FieldStorage()
|
action = cgi.FieldStorage()
|
||||||
@ -103,7 +104,7 @@ if linklist == "True":
|
|||||||
print ' <div class="sidebarentry">'
|
print ' <div class="sidebarentry">'
|
||||||
print ' <small>links</small><br />'
|
print ' <small>links</small><br />'
|
||||||
for line in content:
|
for line in content:
|
||||||
print ' <a href=' + line.split(" ")[0] + '>' + line.split(" ", 1)[1] + '</a> <br />'
|
print ' <a href=' + line.split(" ")[0] + '>' + line.split(" ", 1)[1].strip() + '</a> <br />'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
content.close()
|
content.close()
|
||||||
|
|
||||||
@ -138,6 +139,8 @@ else: # Show regular entry
|
|||||||
print ' <div class="entry"><p>'
|
print ' <div class="entry"><p>'
|
||||||
for line in content:
|
for line in content:
|
||||||
print ' ' + line.strip() + '<br />'
|
print ' ' + line.strip() + '<br />'
|
||||||
|
if comments == "True":
|
||||||
|
print ' <div class="comment"><ul><li><a href=? class="comment">comments</a></li></ul></div><br />'
|
||||||
print ' </p></div>'
|
print ' </p></div>'
|
||||||
print ' <br /><br />'
|
print ' <br /><br />'
|
||||||
content.close()
|
content.close()
|
||||||
|
@ -12,4 +12,5 @@ monthlist: True
|
|||||||
staticpages: True
|
staticpages: True
|
||||||
linklist: True
|
linklist: True
|
||||||
permalinks: True
|
permalinks: True
|
||||||
|
comments: True
|
||||||
newest_first: True
|
newest_first: True
|
||||||
|
@ -71,3 +71,10 @@ a.entrytitle:link, a.entrytitle:hover, a.entrytitle:visited, a.entrytitle:active
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background: #111;
|
background: #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.comment:link, a.comment:hover, a.comment:active, a.comment:visited {
|
||||||
|
font-family: Arial;
|
||||||
|
font-size: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim: set tw=0 ts=4:
|
||||||
|
Loading…
Reference in New Issue
Block a user