xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do xml.title config.site_title xml.subtitle config.site_tagline xml.id config.site_url xml.link "href" => config.site_url xml.link "href" => "#{config.site_url}/feed.xml", "rel" => "self" xml.updated data.blog.first.date.to_time.iso8601 xml.author { xml.name config.site_author } data.blog.each do |post| xml.entry do url= "#{config.site_url}/posts/#{post.slug}" xml.title post.title xml.link "rel" => "alternate", "href" => url xml.id url xml.published post.date.to_time.iso8601 xml.updated post.date.to_time.iso8601 xml.author { xml.name config.site_author } xml.content post.body, "type" => "html" end end end