diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index eb1b3e1..0d3dec2 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -19,6 +19,10 @@ positionFixedSelector: '.tocbot', positionFixedClass: 'is-position-fixed', fixedSidebarOffset: 'auto', + onClick: (e) => { + document.getElementById(e.target.innerText).scrollIntoView() + return false; + } }); <% } %> @@ -40,4 +44,4 @@ - \ No newline at end of file +