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

34 lines
731 B
Plaintext
Raw Normal View History

<%- __js([
'js/utils.js',
'js/main.js',
2020-04-18 17:26:29 +08:00
'js/header-shrink.js',
'js/back2top.js',
'js/dark-light-toggle.js'
2020-04-18 17:26:29 +08:00
]) %>
2020-04-21 10:47:36 +08:00
2020-11-13 14:43:22 +08:00
<% if (theme.local_search.enable) { %>
<%- __js('js/local-search.js') %>
<% } %>
<% if (theme.code_copy.enable) { %>
<%- __js('js/code-copy.js') %>
<% } %>
2021-01-07 15:15:39 +08:00
<% if (theme.lazyload.enable) { %>
<%- __js('js/lazyload.js') %>
<% } %>
2021-01-06 23:31:00 +08:00
<div class="post-scripts<%= theme.pjax.enable === true ? ' pjax' : '' %>">
<% if (theme.toc.enable && is_post()) { %>
<%- __js([
'js/left-side-toggle.js',
'js/libs/anime.min.js',
'js/toc.js'
]) %>
2020-04-21 10:47:36 +08:00
<% } %>
</div>
2020-04-21 10:47:36 +08:00
<% if (theme.pjax.enable === true) { %>
<%- partial('pjax/pjax') %>
2020-04-21 10:47:36 +08:00
<% } %>