2024-02-12 23:07:56 +08:00
|
|
|
<%
|
|
|
|
|
|
|
|
function custom_inject() {
|
|
|
|
var el = '';
|
|
|
|
for (let item of (config.inject?.script || [])) {
|
|
|
|
el += item;
|
|
|
|
}
|
|
|
|
for (let item of (theme.inject?.script || [])) {
|
|
|
|
el += item;
|
|
|
|
}
|
|
|
|
for (let item of (page.inject?.script || [])) {
|
|
|
|
el += item;
|
|
|
|
}
|
|
|
|
return el;
|
|
|
|
}
|
|
|
|
|
|
|
|
%>
|
|
|
|
<%- partial('scripts/defines') %>
|
|
|
|
<%- partial('scripts/utils') %>
|
|
|
|
<%- partial('scripts/sidebar') %>
|
2024-05-13 09:45:38 +08:00
|
|
|
<%- partial('scripts/tagtree') %>
|
2024-02-12 23:07:56 +08:00
|
|
|
|
|
|
|
<!-- required -->
|
2024-06-16 22:30:38 +08:00
|
|
|
<script src="<%- `${theme.stellar.main_js}?v=${stellar_info('version')}` %>" defer></script>
|
2024-02-12 23:07:56 +08:00
|
|
|
|
2024-04-28 00:56:26 +08:00
|
|
|
<%- partial('scripts/theme') %>
|
|
|
|
|
2024-02-12 23:07:56 +08:00
|
|
|
<!-- optional -->
|
|
|
|
<%- partial('comments/script') %>
|
|
|
|
|
|
|
|
<%- partial('scripts/services') %>
|
|
|
|
<%- partial('../_plugins/index') %>
|
|
|
|
|
|
|
|
<!-- inject -->
|
|
|
|
<%- custom_inject() %>
|