Sha256: 2cb2112a11191d33e29af647453c3877a78ce4f7fa04a3fbc6335dc0834b9997
Contents?: true
Size: 398 Bytes
Versions: 78
Compression:
Stored size: 398 Bytes
Contents
xml.instruct! :xml, :version => '1.0', :encoding => 'UTF-8' # create the urlset xml.urlset :xmlns => 'http://www.sitemaps.org/schemas/sitemap/0.9' do @pages.each do |page| xml.url do if page.url_name == Spud::Cms.root_page_name xml.loc root_url() else xml.loc page_url(:id => page.url_name) end xml.lastmod page.updated_at.xmlschema end end end
Version data entries
78 entries across 78 versions & 2 rubygems