Fix broken list, replaces #918

This commit is contained in:
Robert Lord 2018-01-20 12:41:03 -06:00
parent 8af90c16c5
commit b742b60413

View file

@ -69,7 +69,7 @@ under the License.
</div> </div>
<ul class="search-results"></ul> <ul class="search-results"></ul>
<% end %> <% end %>
<div id="toc" class="toc-list-h1"> <ul id="toc" class="toc-list-h1">
<% toc_data(page_content).each do |h1| %> <% toc_data(page_content).each do |h1| %>
<li> <li>
<a href="#<%= h1[:id] %>" class="toc-h1 toc-link" data-title="<%= h1[:content].to_s.parameterize %>"><%= h1[:content] %></a> <a href="#<%= h1[:id] %>" class="toc-h1 toc-link" data-title="<%= h1[:content].to_s.parameterize %>"><%= h1[:content] %></a>
@ -84,7 +84,7 @@ under the License.
<% end %> <% end %>
</li> </li>
<% end %> <% end %>
</div> </ul>
<% if current_page.data.toc_footers %> <% if current_page.data.toc_footers %>
<ul class="toc-footer"> <ul class="toc-footer">
<% current_page.data.toc_footers.each do |footer| %> <% current_page.data.toc_footers.each do |footer| %>