<%- js('https://cdn.jsdelivr.net/npm/jquery@3.4/dist/jquery.min.js') %> <%- js('https://cdn.jsdelivr.net/npm/pjax@0.2.8/pjax.min.js') %> <% if (theme.search && theme.search.enable) { %> <% } %> <% if (theme.plugins.instant_page) { %> <% } %> <% 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 enableVssue = false; var enableValine = false; var enableMiniValine = false; if (theme.comments) { 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.vssue && theme.comments.vssue.clientId) { enableVssue = true; } if (theme.comments.valine && theme.comments.valine.appId) { enableValine = true; } if (theme.comments.minivaline && theme.comments.minivaline.appId) { enableMiniValine = true; } } %> <% if (enableDisqus){ %> <% } %> <% if (enableLivere){ %> <% } %> <% if (enableGitalk) { %> <% } %> <% if (enableVssue) { %> <% } %> <% if (enableValine){ %> <% if (theme.comments.valine.js) { %> <%- js(theme.comments.valine.js) %> <% } else { %> <%- js(['js/valine.js']) %> <% } %> <% } %> <% if (enableMiniValine){ %> <% if (theme.comments.minivaline.js) { %> <%- js(theme.comments.minivaline.js) %> <% } else { %> <% } %> <% var emoticonUrl = theme.comments.minivaline.emoticonUrl || [] %> <% var tagMeta = theme.comments.minivaline.tagMeta || [] %> <% var master = theme.comments.minivaline.master || [] %> <% var friends = theme.comments.minivaline.friends || [] %> <% } %> <% if (theme.plugins.clipboard && (theme.style.body.highlight.copy_btn == true)) { %> <%- partial('_third-party/clipboard') %> <% } %> <% if (theme.plugins.scrollreveal && theme.plugins.scrollreveal.js) { %> <% } %> <%- partial('_third-party/fancybox') %> <% if (config.use_cdn && theme.info.cdn && theme.info.cdn.js) { %> <%- js(theme.info.cdn.js) %> <% } else { %> <%- js(['js/app.js']) %> <% } %> <% if (theme.search && theme.search.enable) { %> <% if (theme.search.js) { %> <%- js(theme.search.js) %> <% } else { %> <%- js(['js/search.js']) %> <% } %> <% } %> <% if (theme.plugins.busuanzi) { %> <% } %> <% if (theme.plugins.nodewaves && theme.plugins.nodewaves.js) { %> <%- js({src: theme.plugins.nodewaves.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 (config.import && config.import.script){ %> <% (config.import.script||[]).forEach(function(item){ %> <%- item %><% }) %> <% } %> <%- js(['js/message.js']) %>