hexo-theme-stellar/layout/_partial/scripts/index.ejs

31 lines
700 B
Plaintext
Raw Normal View History

2021-02-19 23:33:19 +08:00
<!-- required -->
2021-02-20 13:09:41 +08:00
<%- js({src: theme.plugins.jquery || 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js'}) %>
2021-02-19 23:33:19 +08:00
<% if (theme.stellar.cdn_js) { %>
<%- js({src: theme.stellar.cdn_js, async: true}) %>
<% } else { %>
<%- js({src: 'js/main.js', async: true}) %>
<% } %>
2021-02-20 13:09:41 +08:00
2021-02-19 23:33:19 +08:00
<!-- optional -->
<%- partial('lazyload') %>
<%- partial('preload') %>
<%- partial('swiper') %>
<%- partial('scrollreveal') %>
<%- partial('../plugins/comments/script') %>
<!-- inject -->
<% if (config.inject && config.inject.script && config.inject.script.length > 0) { %>
<% config.inject.script.forEach(function(js) { %>
<%- js %>
<% }) %>
<% } %>
<!-- lazyload scripts -->
<%- partial('issues') %>