Skip to content

Commit 4b7074c

Browse files
authored
Limit Errata table of contents to one level (#4439)
This removes the nested level (containing Substantive and Editorial within each publication section) from the table of contents in each errata document.
1 parent dc09af6 commit 4b7074c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

11ty/CustomLiquid.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ export class CustomLiquid extends Liquid {
115115
$childList = null;
116116
$tocList.append(`<li><a href="#${el.attribs.id}">${$(h2El).text()}</a></li>`);
117117
});
118-
$el.find("> h3:first-child").each((_, h3El) => {
119-
if (!$childList) $childList = $(`<ol class="toc"></ol>`).appendTo($tocList);
120-
$childList.append(`<li><a href="#${el.attribs.id}">${$(h3El).text()}</a></li>`);
121-
});
122118
});
123119

124120
return $.html();

0 commit comments

Comments
 (0)