diff options
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 243f8549..3be45f40 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -59,5 +59,16 @@ {{ partial "components/comment.html" . }} + <script src="/js/tocbot.min.js"></script> + <script> + tocbot.init({ + tocSelector: '#toc', + contentSelector: '#post-content', + headingSelector: 'h2, h3:not(blockquote > h3)', + hasInnerContainers: true, + scrollSmoothOffset: -30 + }); + </script> + </article> {{ partial "snippets/document-end.html" . }} |
