<% @site_in_use_locales.each do |locale| %> <%= request.protocol + request.host_with_port + "/?locale=#{locale.to_s}"%> <%= (@home.page_parts.desc(:updated_at).first.updated_at rescue @home.updated_at) %> 0.5 <% end %> <% @items.each do |item| %> <% @site_in_use_locales.each do |locale| %> <% if item.enabled_for_sitemap.include?locale.to_s %> <%= request.protocol + request.host_with_port + "/" + locale.to_s + item.url %> <%= item.updated_at %> 0.5 <% end %> <% end %> <% end %>