<% sitemap_tree.flatten.each do |page| %> <% if page.get_val.destination_path.include?('.html') %> <%= "#{app_data.config.host}/#{page.get_val.destination_path.gsub(/index\.html$/, '')}" %> <% end %> <% end %>