%- js('https://cdn.jsdelivr.net/npm/jquery@3.4/dist/jquery.min.js') %>
<% if (theme.search && theme.search.enable) { %>
<% } %>
<% if (theme.plugins.instant_page) { %>
<% } %>
<% if (theme.plugins.scrollreveal) { %>
<% } %>
<% if (theme.plugins.nodewaves && theme.plugins.nodewaves.js) { %>
<%- js({src: theme.plugins.nodewaves.js}) %>
<% } %>
<% if (theme.plugins.busuanzi) { %>
<% } %>
<% if (theme.plugins.backstretch && theme.plugins.backstretch.enable && (theme.plugins.backstretch.images || page.images)) { %>
<% var imgs = theme.plugins.backstretch.images || page.images; %>
<% var posi = null;
if (theme.plugins.backstretch.position == 'cover') {
posi = '.cover';
}
%>
<% if (imgs != undefined && theme.plugins.backstretch.position != undefined){ %>
<%- js(theme.plugins.backstretch.js) %>
<% } %>
<% } %>
<% if (theme.plugins.aplayer && theme.plugins.aplayer.enable && theme.plugins.aplayer.js) { %>
<% (theme.plugins.aplayer.js||[]).forEach(function(item){ %>
<%- js({src:item}) %>
<% }) %>
<% } %>
<%
var enableDisqus = false;
var enableLivere = false;
var enableGitalk = false;
var enableValine = false;
if (theme.comments && page && page.comments == true) {
if (theme.comments.disqus && theme.comments.disqus.shortname) {
enableDisqus = true;
}
if (theme.comments.livere && theme.comments.livere.uid) {
enableLivere = true;
}
if (theme.comments.gitalk && theme.comments.gitalk.clientID) {
enableGitalk = true;
}
if (theme.comments.valine && theme.comments.valine.appId) {
enableValine = true;
}
}
%>
<% if (enableDisqus){ %>
<% } %>
<% if (enableLivere){ %>
<% } %>
<% if (enableGitalk) { %>
<% } %>
<% if (enableValine){ %>
<% if (theme.comments.valine.js) { %>
<%- js(theme.comments.valine.js) %>
<% } else { %>
<%- js(['js/valine.js']) %>
<% } %>
<% } %>
<% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js) { %>
<%- js(theme.info.cdn.js) %>
<% } else { %>
<%- js(['js/app.js']) %>
<% } %>
<% if (theme.search && theme.search.enable && theme.search.js) { %>
<%- js(theme.search.js) %>
<% } %>
<% if (theme.plugins.comment_typing) { %>
<%- js(theme.plugins.comment_typing) %>
<% } %>
<% if (config.highlight.enable != true) { %>
<% if (theme.plugins.highlightjs && theme.plugins.highlightjs.js) { %>
<%- js(theme.plugins.highlightjs.js) %>
<% } %>
<% } %>
<% if (theme.plugins.clipboard && theme.style.body.highlight.copy_btn) { %>
<%- partial('_third-party/clipboard') %>
<% } %>
<% if (theme.plugins.fancybox) { %>
<%- partial('_third-party/fancybox') %>
<% } %>
<% if (config.import && config.import.script){ %>
<% (config.import.script||[]).forEach(function(item){ %>
<%- item %><% }) %>
<% } %>