2020-04-18 17:26:29 +08:00
|
|
|
<%- js([
|
|
|
|
'js/main.js',
|
|
|
|
'js/header-shrink.js',
|
2020-04-25 21:45:45 +08:00
|
|
|
'js/toggle-mode.js'
|
2020-04-18 17:26:29 +08:00
|
|
|
]) %>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-04-25 21:45:45 +08:00
|
|
|
<% if (theme.back2top.enable) { %>
|
|
|
|
<%- js('js/scroll-to-top.js') %>
|
|
|
|
<% } %>
|
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% if (is_post()) { %>
|
|
|
|
|
|
|
|
<% if (theme.codeblock.copy_button.enable) { %>
|
|
|
|
<%- js('js/code-copy.js') %>
|
|
|
|
<% } %>
|
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
<% if (theme.toc.enable && theme.magic.enable && theme.magic.sidebar.enable) { %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<%- js(['lib/anime.min.js', 'js/toc.js']) %>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
|