Breadcrumbs: <% meta['breadcrumbs'].count.times do |i| %> <% page = sitemap.dig(*meta['breadcrumbs'].take(i+1)) %> <%= page.dig('_meta', 'title') %> <% next if i+1 == meta['breadcrumbs'].count %> / <% end %> <%= content %> <% if meta['type'] == 'collection' %> <% end %>