# File lib/nanoc/helpers/blogging.rb, line 118
      def build_for_feed(xml)
        xml.instruct!
        xml.feed(:xmlns => 'http://www.w3.org/2005/Atom') do
          root_url = @site.config[:base_url] + '/'

          # Add primary attributes
          xml.id      root_url
          xml.title   title

          # Add date
          xml.updated(attribute_to_time(last_article[:created_at]).to_iso8601_time)

          # Add links
          xml.link(:rel => 'alternate', :href => root_url)
          xml.link(:rel => 'self',      :href => feed_url)

          # Add author information
          xml.author do
            xml.name  author_name
            xml.uri   author_uri
          end

          # Add icon and logo
          xml.icon icon if icon
          xml.logo logo if logo

          # Add articles
          sorted_relevant_articles.each do |a|
            self.build_for_article(a, xml)
          end
        end
      end