Sha256: b9d72d507232fbd43ddecace5dae821c3c67a43647feda9925cb7f8b76bba9c3
Contents?: true
Size: 493 Bytes
Versions: 11
Compression:
Stored size: 493 Bytes
Contents
--- layout: false --- site_url = config[:sitemap_url] || "http://localhost:4567/" xml.instruct! xml.urlset 'xmlns' => "http://www.sitemaps.org/schemas/sitemap/0.9" do sitemap.resources.select { |page| page.destination_path =~ /\.html/ }.each do |page| xml.url do xml.loc URI.escape(File.join(site_url, page.destination_path)) xml.lastmod Time.now.iso8601 xml.changefreq page.data.changefreq || "weekly" xml.priority page.data.priority || "0.5" end end end
Version data entries
11 entries across 10 versions & 2 rubygems