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
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
<% if (theme.local_search.enable) { %>
|
2020-11-24 10:55:24 +08:00
|
|
|
<%- __js('js/local-search.js') %>
|
2020-04-25 21:45:45 +08:00
|
|
|
<% } %>
|
|
|
|
|
2020-12-30 18:11:46 +08:00
|
|
|
<% if (theme.code_copy.enable) { %>
|
|
|
|
<%- __js('js/code-copy.js') %>
|
|
|
|
<% } %>
|
2020-10-21 19:36:38 +08:00
|
|
|
|
2021-01-06 23:31:00 +08:00
|
|
|
<div class="post-scripts<%= theme.pjax.enable === true ? ' pjax' : '' %>">
|
2020-12-30 18:11:46 +08:00
|
|
|
<% 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
|
|
|
<% } %>
|
2020-12-30 18:11:46 +08:00
|
|
|
</div>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-12-30 18:11:46 +08:00
|
|
|
<% if (theme.pjax.enable === true) { %>
|
|
|
|
<%- partial('pjax/pjax') %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } %>
|