Skip to content

Commit

Permalink
Fix TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Mar 2, 2024
1 parent bfdad3a commit 9e33cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ module.exports = config => {
elements.forEach(element => {
const heading = element.querySelector('h2, h3');

if (heading && heading.textContent !== 'Example(s)' && heading.textContent !== 'Argument(s)') {
if (heading && heading.textContent !== 'Example(s)' && heading.textContent !== 'Argument(s)' && heading.textContent !== 'References') {
toc += `<li class="toc-level-${heading.tagName.toLowerCase()}"><a href="#${heading.id}">${heading.textContent}</a></li>`;
}
});
Expand Down

0 comments on commit 9e33cd6

Please sign in to comment.