From a656f32b3f41bd7eaec627b95429ebd3b6441c1f Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 16 Mar 2025 08:36:34 +0800 Subject: chore: move tocbot to local --- layouts/_default/single.html | 11 +++++++++++ layouts/partials/scripts.html | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'layouts') 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" . }} + + + {{ partial "snippets/document-end.html" . }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index fbd7c65a..3beda6dd 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -10,18 +10,6 @@ lazyLoadInstance.update(); /* === Fancybox === */ Fancybox.bind("[data-fancybox]"); -/* === tocbot === */ -function loadToc() { - tocbot.init({ - tocSelector: '#toc', - contentSelector: '#post-content', - headingSelector: 'h2, h3:not(blockquote > h3)', - hasInnerContainers: true, - scrollSmoothOffset: -30 - }); -} -loadToc(); - /* === littlefoot === */ littlefoot.littlefoot(littlefootOptions) -- cgit v1.2.3