Bugfix
This commit is contained in:
parent
7cb32d56d5
commit
e6ff0c0b30
@ -335,12 +335,15 @@ else:
|
|||||||
f = open(staticpage, 'r')
|
f = open(staticpage, 'r')
|
||||||
for line in f:
|
for line in f:
|
||||||
if line.split(':', 1)[0] == 'extern_link':
|
if line.split(':', 1)[0] == 'extern_link':
|
||||||
link = line.split(':', 1)[1].strip()
|
extern_link = line.split(':', 1)[1].strip()
|
||||||
else:
|
else:
|
||||||
link = re.sub('\w+?\/', '', staticpage)
|
link = re.sub('\w+?\/', '', staticpage)
|
||||||
break
|
break
|
||||||
f.close()
|
f.close()
|
||||||
title = re.sub('\w+?\/\d+?-', '', staticpage)
|
title = re.sub('\w+?\/\d+?-', '', staticpage)
|
||||||
|
if extern_link:
|
||||||
|
print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + title + '</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="?s=' + link + '" class="pages_list_entry">' + title + '</a></li>'
|
||||||
print ' </ul>'
|
print ' </ul>'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
|
Loading…
Reference in New Issue
Block a user