lib/kitchen/directions/bake_index/v1.xhtml.erb in openstax_kitchen-14.0.0 vs lib/kitchen/directions/bake_index/v1.xhtml.erb in openstax_kitchen-15.0.0

- old
+ new

@@ -9,19 +9,15 @@ <% @index.sections.each do |section| %> <div class="group-by"> <span class="group-label"><%= section.name %></span> <% section.items.each do |item| %> <div class="os-index-item"> - <% item.terms.each_with_index do |term, ii| %> - <% if ii == 0 %> + <%- item.terms.each_with_index do |term, ii| -%> + <%- if ii == 0 -%> <span class="os-term" group-by="<%= term.group_by %>"><%= term.text %></span> - <% else %> - <span class="os-index-link-separator">, </span> - <% end %> - <a class="os-term-section-link" href="#<%= term.id %>"> - <span class="os-term-section"><%= term.page_title %></span> - </a> - <% end %> + <%- else -%><span class="os-index-link-separator">, </span><% end %> + <a class="os-term-section-link" href="#<%= term.id %>"><span class="os-term-section"><%= term.page_title %></span></a><!-- + --><%- end %> </div> <% end %> </div> <% end %> </div>