sitemap.xml.builder 262 Bytes
Newer Older
Robert Speicher's avatar
Robert Speicher committed
1 2 3 4 5 6 7 8 9
xml.instruct!
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
  pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) }
  pages.each do |page|
    xml.url do
      xml.loc URI.join(data.site.url, page.url)
    end
  end
end