Sha256: acbd65f9e8a05e5b7fbfb4c12540adde2368100e8327ca8179cd49e48acd76b8
Contents?: true
Size: 763 Bytes
Versions: 34
Compression:
Stored size: 763 Bytes
Contents
xml.instruct! xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do xml.url do xml.loc current_site_public_url xml.priority 1.0 end @pages.each do |page| if not page.index_or_not_found? if page.templatized? page.fetch_target_entries(_visible: true).each do |c| if c._slug.present? xml.url do xml.loc public_page_url(page, { content: c }) xml.lastmod c.updated_at.to_date.to_s('%Y-%m-%d') xml.priority 0.9 end end end else xml.url do xml.loc public_page_url(page) xml.lastmod page.updated_at.to_date.to_s('%Y-%m-%d') xml.priority 0.9 end end end end end
Version data entries
34 entries across 34 versions & 2 rubygems