diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-14 17:45:57 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-14 17:47:01 +0800 |
| commit | e91423d6f2803efb006d539386dfcee02387d54b (patch) | |
| tree | 6be1db12819421225be8380c217f79f48d4ae280 /layouts/partials | |
| parent | ad52cd9e5153de1131f519ac101dee1c38aef104 (diff) | |
use partial instead of partialCached for footer.html
footer has involved a lot of config keys since our fork, sometimes the toc scroll behavior is broken due to cached footer is inconsistant with the current file
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8e34467..94cc321 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -158,8 +158,10 @@ for (const listener of scrollListeners) { window.removeEventListener('scroll', listener) } + window.scrollListeners = [] return } + // console.log('enable toc scroll') const headings = document.querySelectorAll('h1[id],h2[id],h3[id],h4[id],h5[id]'); const activeClass = 'active'; |
