summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/scripts.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index ed791d4c..746134be 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -37,12 +37,10 @@ Fancybox.bind("[data-fancybox]");
function loadToc() {
tocbot.init({
tocSelector: '#toc',
- // Where to grab the headings to build the table of contents.
contentSelector: '#post-content',
- // Which headings to grab inside of the contentSelector element.
headingSelector: 'h2, h3:not(blockquote > h3)',
- // For headings inside relative or absolute positioned containers within content.
hasInnerContainers: true,
+ scrollSmoothOffset: -30
});
}
loadToc();