Really fixed now ;)
This commit is contained in:
parent
aea159f141
commit
a8f13c725e
19
blogthon.cgi
19
blogthon.cgi
@ -332,21 +332,16 @@ else:
|
||||
print ' <div class="pages_list">'
|
||||
print ' <ul class="pages_list">'
|
||||
for staticpage in staticpages_list:
|
||||
f = open(staticpage, 'r')
|
||||
for line in f:
|
||||
if line.split(':', 1)[0] == 'extern_link':
|
||||
link = ''
|
||||
extern_link = line.split(':', 1)[1].strip()
|
||||
file = open(staticpage, 'r')
|
||||
header = file.readline()
|
||||
if header.split(':', 1)[0] == 'extern_link':
|
||||
link = header.split(':', 1)[1].strip()
|
||||
else:
|
||||
link = re.sub('\w+?\/', '', staticpage)
|
||||
extern_link = ''
|
||||
break
|
||||
f.close()
|
||||
link = '?s=' + link
|
||||
file.close()
|
||||
title = re.sub('\w+?\/\d+?-', '', staticpage)
|
||||
if extern_link:
|
||||
print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + extern_link + '</a></li>'
|
||||
else:
|
||||
print ' <li class="pages_list_entry"><a href="?s=' + link + '" class="pages_list_entry">' + title + '</a></li>'
|
||||
print ' <li class="pages_list_entry"><a href="' + link + '" class="pages_list_entry">' + title + '</a></li>'
|
||||
print ' </ul>'
|
||||
print ' </div>'
|
||||
print ' <div class="pages_footer"></div>'
|
||||
|
Loading…
Reference in New Issue
Block a user