2020-11-24 10:55:24 +08:00
|
|
|
<%- __js([
|
2020-10-21 19:36:38 +08:00
|
|
|
'js/utils.js',
|
2020-11-25 16:54:44 +08:00
|
|
|
'js/main.js',
|
2020-04-18 17:26:29 +08:00
|
|
|
'js/header-shrink.js',
|
2020-11-25 16:54:44 +08:00
|
|
|
'js/back2top.js',
|
|
|
|
'js/dark-light-toggle.js'
|
2020-04-18 17:26:29 +08:00
|
|
|
]) %>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2022-09-28 23:53:03 +08:00
|
|
|
<%
|
|
|
|
const {
|
|
|
|
local_search: t_local_search,
|
|
|
|
code_copy: t_code_copy,
|
2022-10-17 21:54:21 +08:00
|
|
|
code_block: t_code_block,
|
2022-09-28 23:53:03 +08:00
|
|
|
lazyload: t_lazyload,
|
|
|
|
toc: t_toc,
|
2022-10-29 23:19:54 +08:00
|
|
|
pjax: t_pjax,
|
|
|
|
comment: t_comment
|
2022-09-28 23:53:03 +08:00
|
|
|
} = theme
|
|
|
|
%>
|
|
|
|
|
|
|
|
<% if (t_local_search?.enable === true) { %>
|
2020-11-24 10:55:24 +08:00
|
|
|
<%- __js('js/local-search.js') %>
|
2020-04-25 21:45:45 +08:00
|
|
|
<% } %>
|
|
|
|
|
2022-10-20 12:22:06 +08:00
|
|
|
<% if (t_code_copy?.enable === true || t_code_block?.enable === true || t_code_block?.tools?.enable === true) { %>
|
2022-10-17 21:54:21 +08:00
|
|
|
<%- __js('js/code-block.js') %>
|
2020-12-30 18:11:46 +08:00
|
|
|
<% } %>
|
2020-10-21 19:36:38 +08:00
|
|
|
|
2022-09-28 23:53:03 +08:00
|
|
|
<% if (t_lazyload?.enable === true) { %>
|
2021-01-07 15:15:39 +08:00
|
|
|
<%- __js('js/lazyload.js') %>
|
|
|
|
<% } %>
|
|
|
|
|
2022-09-28 23:53:03 +08:00
|
|
|
<div class="post-scripts<%= theme.pjax?.enable === true ? ' pjax' : '' %>">
|
2022-10-29 00:16:15 +08:00
|
|
|
<% if (is_post()) { %>
|
2022-10-29 23:19:54 +08:00
|
|
|
<%- __js('js/post-helper.js') %>
|
|
|
|
<% if (t_toc?.enable === true || t_comment?.enable === true) { %>
|
|
|
|
<%- __js('js/libs/anime.min.js') %>
|
|
|
|
<% } %>
|
2022-10-29 00:16:15 +08:00
|
|
|
<% if (t_toc?.enable === true) { %>
|
|
|
|
<%- __js('js/toc.js') %>
|
|
|
|
<% } %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } %>
|
2020-12-30 18:11:46 +08:00
|
|
|
</div>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2022-09-28 23:53:03 +08:00
|
|
|
<% if (t_pjax?.enable === true) { %>
|
2020-12-30 18:11:46 +08:00
|
|
|
<%- partial('pjax/pjax') %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } %>
|