diff --git a/app/views/front/show_sitemap.html.erb b/app/views/front/show_sitemap.html.erb index 74da0ac0..16da1a8b 100644 --- a/app/views/front/show_sitemap.html.erb +++ b/app/views/front/show_sitemap.html.erb @@ -1,16 +1,20 @@
- <% @items.each_with_index do |item, i| %> + <% i = 1 %> + <% @items.each do |item| %> <% if item.show_in_sitemap_for(I18n.locale.to_s) %>
-

<%= i+1 %> <%= item.title %>

+

<%= i %> <%= item.title %>

+ <% i += 1 %> <% end %> <% end %>