Sha256: b8c21f4d0897a9ae4ee5d7c0a9d45ff81b4c58f0b841bbc89dafb9662b05822e
Contents?: true
Size: 717 Bytes
Versions: 6
Compression:
Stored size: 717 Bytes
Contents
xml.instruct! xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do xml.url do xml.loc current_site_url xml.priority 1.0 end @pages.each do |page| if not page.index_or_not_found? if page.templatized? page.content_type.entries.visible.each do |c| xml.url do xml.loc page_url(page, { :content => c, :host => true }) xml.lastmod c.updated_at.to_date.to_s('%Y-%m-%d') xml.priority 0.9 end end else xml.url do xml.loc page_url(page, { :host => true }) xml.lastmod page.updated_at.to_date.to_s('%Y-%m-%d') xml.priority 0.9 end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems