<%= Spree.t(:sitemap) %>
<%= link_to Spree::Store.default.name, @public_dir %>
<% unless @pages %>
<% @pages.each do |page| %>
- <%= link_to page.title, @public_dir + page.slug %>
<% end %>
<% end %>
<% unless @taxonomies.blank? %>
<% @taxonomies.each do |taxonomy| %>
<% taxons = Spree::Taxon.where(taxonomy_id: taxonomy.id) %>
<%= taxonomy.name %>
<% taxons.each do |taxon| %>
<% unless taxon.name == taxonomy.name %>- <%= link_to taxon.name, @public_dir + taxon.permalink %>
<% end %>
<% end %>
<% end %>
<% end %>
<% unless @products %>
Products
<% @products.each do |product| %>
- <%= link_to product.name, @public_dir + "products/" + product.slug %>
<% end %>
<% end %>