diff --git a/src/_layouts/components/tocTools.11ty.js b/src/_layouts/components/tocTools.11ty.js index 5d77f2ed7b..2227873d97 100644 --- a/src/_layouts/components/tocTools.11ty.js +++ b/src/_layouts/components/tocTools.11ty.js @@ -29,9 +29,10 @@ exports.getPageTOC = (obj) => { const createToc = (collection) => { const tocItems = collection.filter(item => item.data.level <= maxLevel).map((item) => { + const id = eleventy.slugify(item.data.title); return ` -
  • - ${item.data.title}navigate_next +
  • + ${item.data.title}
  • `; }); @@ -43,7 +44,8 @@ exports.getPageTOC = (obj) => { } return ` -