diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-04-14 02:50:37 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-04-14 02:50:37 +0200 |
commit | f51dc890be3487c15727c82dd6e036bd82236e27 (patch) | |
tree | 6f6196889aa9bffcea681a2dfe7faf39a0601bd0 /blogthon.cgi | |
parent | 7d50eb1e4b024f374d5ae11796a38f3766065959 (diff) | |
parent | 568719f945e1c98278b0b506613e42c083550c9c (diff) |
Merge branch 'master' of git@fucktheforce.de:blogthon
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-x | blogthon.cgi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 58be8ab..3872c7f 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -135,21 +135,22 @@ if feed_display == "atom": blog_title_md5sum = generate_uuid(blog_title) title_md5sum = generate_uuid(title) - print 'Content-type: text/html\n' + print 'Content-type: application/atom+xml\n' print '<?xml version="1.0" encoding="utf-8"?>' print '<feed xmlns="http://www.w3.org/2005/Atom">' + print '<link href="' + blog_url + '/?feed=atom" rel="self" type="application/atom+xml"/>' print ' <author>' print ' <name>' + blog_title + '</name>' print ' </author>' print ' <title>' + blog_title + '</title>' print ' <id>urn:uuid:' + blog_title_md5sum + '</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 ' <updated>' + str(date[0]) + '-0' + str(date[1]) + '-' + str(date[2]) + 'T' + str(date[3]) + ':' + str(date[4]) + ':' + str(date[5]) + 'Z</updated>' print '' print ' <entry>' print ' <title>' + title + '</title>' - print ' <link href="' + blog_url + '/?p=' + title + '"/>' - print ' <id>urn:uuid:' + title_md5sum + '</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 ' <link href="' + blog_url + '"/>' + print ' <id>urn:uuid:' + title_md5sum + '</id>' + print ' <updated>' + str(date[0]) + '-0' + str(date[1]) + '-' + str(date[2]) + 'T' + str(date[3]) + ':' + str(date[4]) + ':' + str(date[5]) + 'Z</updated>' print ' </entry>' print '</feed>' |