mirror of
https://github.com/danog/sass-site.git
synced 2024-12-15 19:07:29 +01:00
05601451cd
Closes #286
12 lines
415 B
Ruby
12 lines
415 B
Ruby
xml.instruct!
|
|
xml.urlset 'xmlns' => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
|
sitemap.resources.select { |page| page.path.end_with?(".html") }.each do |page|
|
|
xml.url do
|
|
xml.loc "#{data.sitemap.url}/#{page.path.sub(/\.html$/, '')}"
|
|
xml.lastmod Date.today.to_time.iso8601
|
|
xml.changefreq page.data.changefreq || "monthly"
|
|
xml.priority page.data.priority || "0.5"
|
|
end
|
|
end
|
|
end
|