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 '
  • ' + title + '
  • ' + print '
  • ' + extern_link + '
  • ' else: print '
  • ' + title + '
  • ' print ' '