Created
November 18, 2009 03:24
-
-
Save dsifry/237530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xml.instruct! :xml, :version=>"1.0", :encoding=> "UTF-8" | |
xml.urlset :xmlns=>"http://www.sitemaps.org/schemas/sitemap/0.9" do | |
xml.url do | |
xml.loc "http://ob.gd/" | |
xml.lastmod Time.now.strftime("%Y-%m-%dT%H:%M:%S%z") | |
xml.changefreq "weekly" | |
xml.priority 0.5 | |
end | |
@guides.each do |guide| | |
xml.url do | |
xml.loc "http://ob.gd" + path(guide) | |
xml.lastmod Time.now.strftime("%Y-%m-%dT%H:%M:%S%z") | |
xml.changefreq "daily" | |
xml.priority 0.8 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment