diff --git a/blogthon.cgi b/blogthon.cgi index bc246ab..4cdfe55 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -6,7 +6,8 @@ # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COPYING for more details. -# Author: Stefan Ritter +# Authors: Stefan Ritter +# Adrian Vondendriesch # Description: A simple blogging software import cgi, os, time, glob, re, md5, sys, random @@ -190,6 +191,7 @@ if feed_display == "atom": # Generate regular page else: document_header("xhtml-transitional") + # XHTML Header print ' ' print ' ' + blog_title + '' print ' ' @@ -198,65 +200,93 @@ else: print ' ' print ' ' print ' ' - print ' ' - print '
' - print ' rss' - print ' atom' + print '' + # Site header + print '
' + print '
' + print ' ' + blog_title + '' + print '
' print '
' + print '' + # RSS feed + print '
' + if os.path.exists('styles/' + style.replace('.css', '') + '_img/rss.jpg'): + print ' ' + else: + print ' rss' + print '
' + print '' + # Atom feed + print '
' + if os.path.exists('styles/' + style.replace('.css', '') + '_img/atom.jpg'): + print ' atom' + print '
' + print '' - print '