Sha256: 2c8ecf9247a8486b8f025f3f0074afc1467bc2991b14e8b64bf43310cd008745
Contents?: true
Size: 409 Bytes
Versions: 6
Compression:
Stored size: 409 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.strftime('%Y-%m-%d') end end end
Version data entries
6 entries across 6 versions & 1 rubygems