Sha256: 1be3f96394edd1df2da1cc9285b3fc692e15b6d1db706fea1763d3eb62eee1c5

Contents?: true

Size: 561 Bytes

Versions: 8

Compression:

Stored size: 561 Bytes

Contents

xml.instruct!
xml.urlset(
    'xmlns'.to_sym => "http://www.sitemaps.org/schemas/sitemap/0.9",
    'xmlns:image'.to_sym => "http://www.google.com/schemas/sitemap-image/1.1"
) do
  xml.url do
    xml.loc "#{root_url}"
    xml.changefreq("weekly")
  end
  @pages.each do |page|
    xml.url do
      xml.loc front_end_page_url(page)
      xml.changefreq("weekly")
    end
  end
  if @products.any?
    @products.each do |product|
      xml.url do
        xml.loc front_end_product_variant_url(product)
        xml.changefreq("weekly")
      end
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.34 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.33 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.32 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.31 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.30 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.20 app/views/c/front_end/pages/sitemap.xml.builder
cd2_catton_cms-1.1.10 app/views/c/front_end/pages/sitemap.xml.builder