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

32 lines
657 B
Plaintext

<%- js([
'js/utils.js',
'js/header-shrink.js',
'js/main.js'
]) %>
<% if (theme.side_tools.enable) { %>
<%- js('js/dark-light-toggle.js') %>
<% if (theme.back2top.enable) { %>
<%- js('js/back2top.js') %>
<% } %>
<% } %>
<!-- theme.local_search.enable && config.search -->
<% if (theme.local_search.enable) { %>
<%- js('js/local-search.js') %>
<% } %>
<% if (is_post()) { %>
<%- js('js/left-side-toggle.js') %>
<% if (theme.code_copy.enable ) { %>
<%- js('js/code-copy.js') %>
<% } %>
<% if (theme.toc.enable) { %>
<%- js(['js/libs/anime.min.js', 'js/toc.js']) %>
<% } %>
<% } %>