From e824647eb184c07132ddd6ed8da231b5fb8d422d Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 11 Aug 2011 13:25:04 +0200 Subject: [PATCH] added some flags for the feed, so that it works more correctly --- views/atom.haml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/views/atom.haml b/views/atom.haml index 5d8970b..624173a 100644 --- a/views/atom.haml +++ b/views/atom.haml @@ -2,15 +2,17 @@ %feed{:xmlns => 'http://www.w3.org/2005/Atom'} %title="zero-knowledge" %subtitle="scripting, programming and administrating" - %link{:href => '/'} - %link{:type => 'application/atom+xml', :rel => "self", :href => '/atom.xml'} + %link{:href => 'http://zero-knowledge.org/'} + %link{:type => 'application/atom+xml', :rel => "self", :href => 'http://zero-knowledge.org/atom.xml'} + %updated=Post.get_all_released.last.written.xmlschema + %id='http://zero-knowledge.org/' -@posts.each do |post| %entry - %id="/post/#{post.id}" + %id="http://zero-knowledge.org/post/#{post.id}" %link{:type => 'text/html', :rel => "alternate", :href => "/post/#{post.id}"} %title=post.title - %updated=post.written + %updated=post.written.xmlschema %author %name=post.account.username - %summary{:type => 'html'}=markup(post.content, post.markup).match(/.*?<\/p>/m)[0] - %content{:type => 'html'}=markup(post.content, post.markup) \ No newline at end of file + %summary{:type => 'html'}=markup(post.content, post.markup).match(/.*?<\/p>/m)[0].gsub(//, '>') + %content{:type => 'html'}=markup(post.content, post.markup).gsub(//, '>')