diff --git a/blogthon.cgi b/blogthon.cgi index 56d3da6..2e8f84c 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -335,13 +335,16 @@ else: f = open(staticpage, 'r') for line in f: if line.split(':', 1)[0] == 'extern_link': - link = line.split(':', 1)[1].strip() + extern_link = line.split(':', 1)[1].strip() else: link = re.sub('\w+?\/', '', staticpage) break f.close() title = re.sub('\w+?\/\d+?-', '', staticpage) - print '
  • ' + title + '
  • ' + if extern_link: + print '
  • ' + title + '
  • ' + else: + print '
  • ' + title + '
  • ' print ' ' print ' ' print ' '