toc_item

<%
const slugify = (text) => text.toLowerCase().replace(/[^\w]/g, "-");
const slug = slugify(entry.name);
%>


  • <%= entry.name %> <% if (entry.children.length) { %>
      <% for (const subentry of entry.children) { %> <%- include('toc_item', {entry: subentry}) %> <% } %>
    <% } %>