def build_for_feed(xml)
xml.instruct!
xml.feed(:xmlns => 'http://www.w3.org/2005/Atom') do
root_url = @site.config[:base_url] + '/'
xml.id root_url
xml.title title
xml.updated(attribute_to_time(last_article[:created_at]).to_iso8601_time)
xml.link(:rel => 'alternate', :href => root_url)
xml.link(:rel => 'self', :href => feed_url)
xml.author do
xml.name author_name
xml.uri author_uri
end
xml.icon icon if icon
xml.logo logo if logo
sorted_relevant_articles.each do |a|
self.build_for_article(a, xml)
end
end
end