Bugfix
This commit is contained in:
parent
7888e09a27
commit
aea159f141
@ -335,6 +335,7 @@ 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 = ''
|
||||||
extern_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)
|
||||||
@ -343,7 +344,7 @@ else:
|
|||||||
f.close()
|
f.close()
|
||||||
title = re.sub('\w+?\/\d+?-', '', staticpage)
|
title = re.sub('\w+?\/\d+?-', '', staticpage)
|
||||||
if extern_link:
|
if extern_link:
|
||||||
print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + title + '</a></li>'
|
print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + extern_link + '</a></li>'
|
||||||
else:
|
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>'
|
||||||
|
Loading…
Reference in New Issue
Block a user