1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-24 00:23:10 +00:00

feat: change TOC plugin to tocbot (#774)

This commit is contained in:
Cotes Chung
2023-03-16 02:56:54 +08:00
parent 474b4ba681
commit 02b7bd5095
13 changed files with 115 additions and 72 deletions

View File

@@ -4,7 +4,8 @@ import {
initLocaleDatetime,
initClipboard,
smoothScroll,
initPageviews
initPageviews,
toc
} from './modules/plugins';
basic();
@@ -13,5 +14,6 @@ initTopbar();
imgExtra();
initLocaleDatetime();
initClipboard();
smoothScroll();
toc();
smoothScroll(); // must be called after toc is created
initPageviews();