% function layoutTocBody() { if (toc(page.content).length > 0) { return toc(page.content, { list_number: item.list_number, min_depth: item.min_depth, max_depth: item.max_depth }) } return '' } function layoutTocHeader(title) { var el = '' el += `
` return el } function layoutDiv(fallback) { const tocBody = layoutTocBody() if (tocBody.length == 0) { return '' } var el = '' el += `