hexo-theme-keep/layout/_partial/scripts.ejs

23 lines
453 B
Plaintext
Raw Normal View History

2020-04-18 17:26:29 +08:00
<%- js([
'js/main.js',
'js/header-shrink.js',
'js/toggle-mode.js'
2020-04-18 17:26:29 +08:00
]) %>
2020-04-21 10:47:36 +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') %>
<% } %>
<% 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']) %>
<% } %>
<% } %>