<% items.each_with_index do |item, index| %>
  • <%= "hide-for-medium" if index > max_items %>"> <%= link_to item[:url], class: "process-nav__link #{item[:active] ? 'active' : nil}" do %> <%= item[:name] %> <% end %>
  • <% end %>
<% if extra_items.any? %> <% end %>