19 lines
324 B
Ruby
19 lines
324 B
Ruby
xml.instruct!
|
|
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
|
|
|
xml.url do
|
|
xml.loc "http://#{@host}"
|
|
xml.priority 1.0
|
|
end
|
|
|
|
@pages.each do |page|
|
|
if not page.index_or_not_found?
|
|
xml.url do
|
|
xml.loc page_main_url(page)
|
|
xml.priority 0.9
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|