Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Middleman sitemap.xml generator developed from
sitemap_noindex: true
sitemap_priority: 0.8
directory_index: false
<% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) && ! == true } %>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="">
<% pages.each do |p| %>
<priority><%= || 0.5 %></priority>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.