2020-04-18 17:26:29 +08:00
|
|
|
<%- js([
|
2020-10-21 19:36:38 +08:00
|
|
|
'js/utils.js',
|
2020-04-18 17:26:29 +08:00
|
|
|
'js/header-shrink.js',
|
2020-10-21 19:36:38 +08:00
|
|
|
'js/main.js'
|
2020-04-18 17:26:29 +08:00
|
|
|
]) %>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-11-09 10:02:41 +08:00
|
|
|
<% if (theme.side_tools.enable) { %>
|
|
|
|
<%- js('js/dark-light-toggle.js') %>
|
|
|
|
|
|
|
|
<% if (theme.back2top.enable) { %>
|
|
|
|
<%- js('js/back2top.js') %>
|
|
|
|
<% } %>
|
2020-10-25 10:48:07 +08:00
|
|
|
<% } %>
|
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
<% if (theme.local_search.enable) { %>
|
2020-11-09 10:02:41 +08:00
|
|
|
<%- js('js/local-search.js') %>
|
2020-04-25 21:45:45 +08:00
|
|
|
<% } %>
|
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% if (is_post()) { %>
|
|
|
|
|
2020-10-21 19:36:38 +08:00
|
|
|
<%- js('js/left-side-toggle.js') %>
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
<% if (theme.code_copy.enable ) { %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<%- js('js/code-copy.js') %>
|
|
|
|
<% } %>
|
|
|
|
|
2020-04-28 23:20:17 +08:00
|
|
|
<% if (theme.toc.enable) { %>
|
2020-10-29 15:42:58 +08:00
|
|
|
<%- js(['js/libs/anime.min.js', 'js/toc.js']) %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } %>
|
|
|
|
<% } %>
|