diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-03-24 20:41:48 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-03-24 20:41:48 +0100 |
commit | acb6432d3c77235b7b695f9a0662a546e5ce6b13 (patch) | |
tree | 8e4a8116ed36dab5dae33ca7e29ac55db1c3605c | |
parent | 6bfd0d4bdea4265b1748b7ecee67183caf7707f3 (diff) |
Atom feed fixes:
* Added blog_url to configuration
* Feed title linked to blog_url
-rwxr-xr-x | blogthon.cgi | 3 | ||||
-rw-r--r-- | configuration | 1 |
2 files changed, 3 insertions, 1 deletions
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>' + title + '</title>' - print ' <link href="http://www.thehappy.de/~xeno/"/>' + print ' <link href="' + blog_url + "/>' print ' <id>urn:uuid:' + title_md5sum_1 + '-' + title_md5sum_2 + '-' + title_md5sum_3 + '-' + title_md5sum_4 + '-' + title_md5sum_5 + '</id>' print ' <updated>' + str(date[0]) + '-' + str(date[1]) + '-' + str(date[2]) + 'T' + str(date[3]) + ':' + str(date[4]) + ':' + str(date[5]) + 'Z</updated>' print ' </entry>' 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 |