From acb6432d3c77235b7b695f9a0662a546e5ce6b13 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 24 Mar 2009 20:41:48 +0100 Subject: Atom feed fixes: * Added blog_url to configuration * Feed title linked to blog_url --- blogthon.cgi | 3 ++- configuration | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/blogthon.cgi b/blogthon.cgi index 983aa99..86becbe 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -21,6 +21,7 @@ configuration = ConfigParser.ConfigParser() configuration.read('configuration') blog_title = configuration.get('personal', 'blog_title') +blog_url = configuration.get('personal', 'blog_url') keywords = configuration.get('personal', 'keywords') entries_dir = configuration.get('personal', 'entries_dir') entries_suffix = configuration.get('personal', 'entries_suffix') @@ -126,7 +127,7 @@ if feed_display == "atom": title_md5sum_5 = title_md5sum[20:32] print ' ' + title + '' - print ' ' + print ' ' print ' urn:uuid:' + title_md5sum_1 + '-' + title_md5sum_2 + '-' + title_md5sum_3 + '-' + title_md5sum_4 + '-' + title_md5sum_5 + '' print ' ' + str(date[0]) + '-' + str(date[1]) + '-' + str(date[2]) + 'T' + str(date[3]) + ':' + str(date[4]) + ':' + str(date[5]) + 'Z' print ' ' diff --git a/configuration b/configuration index 35004fd..edd236c 100644 --- a/configuration +++ b/configuration @@ -1,5 +1,6 @@ [personal] blog_title: A BlogThon Blog +blog_url: http://www.thehappy.de/ keywords: please,change,me entries_dir: entries/ entries_suffix: txt -- cgit v1.2.3