diff --git a/_javascript/modules/components/toc.js b/_javascript/modules/components/toc.js index bfb0c00..b397813 100644 --- a/_javascript/modules/components/toc.js +++ b/_javascript/modules/components/toc.js @@ -1,5 +1,5 @@ export function toc() { - if (document.querySelector('main h2')) { + if (document.querySelector('main h2, main h3')) { // see: https://github.com/tscanlin/tocbot#usage tocbot.init({ tocSelector: '#toc',