fix: fixed js files load error
This commit is contained in:
parent
3b86b69f55
commit
bb7e05d174
|
@ -10,11 +10,11 @@
|
||||||
history: true,
|
history: true,
|
||||||
debug: false,
|
debug: false,
|
||||||
cacheBust: false,
|
cacheBust: false,
|
||||||
|
timeout: 0,
|
||||||
// analytics: false,
|
// analytics: false,
|
||||||
// currentUrlFullReload: false,
|
// currentUrlFullReload: false,
|
||||||
// scrollRestoration: false,
|
// scrollRestoration: false,
|
||||||
// scrollTo: true,
|
// scrollTo: true,
|
||||||
// timeout: 0,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('pjax:complete', () => {
|
window.addEventListener('pjax:complete', () => {
|
||||||
|
|
|
@ -40,6 +40,7 @@ hexo.extend.helper.register('export_config', function () {
|
||||||
toc: theme.toc,
|
toc: theme.toc,
|
||||||
style: theme.style,
|
style: theme.style,
|
||||||
local_search: theme.local_search,
|
local_search: theme.local_search,
|
||||||
|
code_copy: theme.code_copy,
|
||||||
side_tools: theme.side_tools,
|
side_tools: theme.side_tools,
|
||||||
pjax: theme.pjax,
|
pjax: theme.pjax,
|
||||||
version: theme.version,
|
version: theme.version,
|
||||||
|
|
|
@ -11,10 +11,16 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
KEEP.initUtils();
|
KEEP.initUtils();
|
||||||
KEEP.initHeaderShrink();
|
KEEP.initHeaderShrink();
|
||||||
KEEP.initModeToggle();
|
KEEP.initModeToggle();
|
||||||
KEEP.initLocalSearch();
|
|
||||||
KEEP.initBack2Top();
|
KEEP.initBack2Top();
|
||||||
|
|
||||||
|
if (KEEP.theme_config.local_search.enable === true) {
|
||||||
|
KEEP.initLocalSearch();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (KEEP.theme_config.code_copy.enable === true) {
|
||||||
KEEP.initCodeCopy();
|
KEEP.initCodeCopy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
KEEP.refresh();
|
KEEP.refresh();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue