lib/sitemap.erb in bridgetown-sitemap-1.2.0 vs lib/sitemap.erb in bridgetown-sitemap-2.0.0
- old
+ new
@@ -16,15 +16,15 @@
</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>
+ <% 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>