diff --git a/_javascript/modules/components/toc.js b/_javascript/modules/components/toc.js index dd46994..9f93824 100644 --- a/_javascript/modules/components/toc.js +++ b/_javascript/modules/components/toc.js @@ -1,11 +1,11 @@ export function toc() { - if (document.querySelector('#core-wrapper h2,#core-wrapper h3')) { + if (document.querySelector('#core-wrapper h2')) { // see: https://github.com/tscanlin/tocbot#usage tocbot.init({ tocSelector: '#toc', contentSelector: '.post-content', ignoreSelector: '[data-toc-skip]', - headingSelector: 'h2, h3', + headingSelector: 'h2, h3, h4', orderedList: false, scrollSmooth: false }); diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md index 2770996..591dbcb 100644 --- a/_posts/2019-08-08-text-and-typography.md +++ b/_posts/2019-08-08-text-and-typography.md @@ -23,7 +23,7 @@ This post is to show Markdown syntax rendering on [**Chirpy**](https://github.co