aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xblogthon.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 5db2915..b7f54ec 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -335,6 +335,7 @@ else:
f = open(staticpage, 'r')
for line in f:
if line.split(':', 1)[0] == 'extern_link':
+ link = ''
extern_link = line.split(':', 1)[1].strip()
else:
link = re.sub('\w+?\/', '', staticpage)
@@ -343,7 +344,7 @@ else:
f.close()
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>'
+ 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 ' </ul>'