Sha256: baa7d734963973d6268a7f43cb83571f970cb4acebf1207349f69f1a4b28a7e5

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

xml.instruct!
xml.urlset 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9' do
  sitemap.resources.select { |page| page.path.end_with?('.html') }.each do |page|
    xml.url do
      xml.loc File.join(url_root, page.url)
      xml.lastmod File.mtime(page.source_file).iso8601
      xml.changefreq page.data.change_frequency || default_change_frequency
      xml.priority page.data.priority || default_priority
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-search_engine_sitemap-1.0.1 lib/middleman/search_engine_sitemap/templates/sitemap.xml.builder
middleman-search_engine_sitemap-1.0.0 lib/middleman/search_engine_sitemap/templates/sitemap.xml.builder