Sha256: 26110e4fe85aca2dc4ed4e4eb318c2687649b725c86414e5ca435f2ebd99c386
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
<?xml version="1.0" encoding="UTF-8"?> <% if page.data.xsl.present? %> <?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?> <% end %> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <% output_collection_names = site.config.collections.select { |_name, data| data.output }.keys %> <% collections.slice(*output_collection_names).each do |_name, collection| %> <% collection.resources.each do |resource| %> <% next if resource.id == "/404" || resource.data.sitemap == false %> <url> <loc><%= xml_escape resource.absolute_url %></loc> <lastmod><%= resource.sitemap_last_modified_at.localtime.xmlschema %></lastmod> </url> <% end %> <% end %> <% site.generated_pages.each do |generated_page| %> <% next if ["sitemap.erb", "robots.liquid"].include? generated_page.name %> <% next if generated_page.data.sitemap == false %> <url> <loc><%= xml_escape absolute_url(generated_page.url) %></loc> <lastmod><%= (generated_page.data.last_modified_at || site.time).localtime.xmlschema %></lastmod> </url> <% end %> <% page.data.static_files.each do |file| %> <% next if file.data.sitemap == false %> <url> <loc><%= xml_escape absolute_url(file.relative_path) %></loc> <lastmod><%= file.modified_time.localtime.xmlschema %></lastmod> </url> <% end %> </urlset>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-sitemap-2.0.1 | lib/sitemap.erb |
bridgetown-sitemap-2.0.0 | lib/sitemap.erb |