<% if (theme.search && theme.search.enable) { %> <% } %> <% if (theme.aplayer.enable) { %> <% } %> <% if (theme.scrollreveal == true) { %> <% } %> <% if (theme.nodewaves == true) { %> <% } %> <% if (theme.busuanzi == true) { %> <% } %> <% if (theme.fastclick == true) { %> <% } %> <% if (theme.backstretch && (theme.backstretch.images || page.images)) { %> <% var imgs = theme.backstretch.images || page.images; %> <% var posi = null; if (theme.backstretch.position == 'cover') { posi = '.cover'; } %> <% if (imgs != undefined && theme.backstretch.position != undefined){ %> <% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.backstretch) { %> <%- js(theme.info.cdn.js.backstretch) %> <% } else { %> <%- js(['js/backstretch.min.js']) %> <% } %> <% } %> <% } %> <% var enableDisqus = false; var enableLivere = false; var enableGitalk = false; var enableValine = false; if (page && page.comments == true) { if (config.disqus_shortname) { enableDisqus = true; } if (config.livere_uid) { enableLivere = true; } if (config.gitalk) { enableGitalk = true; } if (theme.valine.enable && config.leancloud) { enableValine = true; } } %> <% if (enableDisqus){ %> <% } %> <% if (enableLivere){ %> <% } %> <% if (enableGitalk) { %> <% } %> <% if (enableValine){ %> <% if (theme.valine.volantis == true) { %> <% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.volantis) { %> <%- js(theme.info.cdn.js.volantis) %> <% } else { %> <%- js(['js/volantis.js']) %> <% } %> <% } else { %> <% } %> <% } %> <% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.app) { %> <%- js(theme.info.cdn.js.app) %> <% } else { %> <%- js(['js/app.js']) %> <% } %> <% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.search) { %> <%- js(theme.info.cdn.js.search) %> <% } else { %> <%- js(['js/search.js']) %> <% } %> <% if (theme.commentTyping == true) { %> <% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.commentTyping) { %> <%- js(theme.info.cdn.js.commentTyping) %> <% } else { %> <%- js(['js/commentTyping.js']) %> <% } %> <%}%> <% if (page.layout == 'links') { %> <%- js('https://cdn.jsdelivr.net/gh/toddmotto/echo@1.7.3/src/echo.js') %> <% } %> <%- partial('_third-party/clipboard') %> <%- partial('_third-party/fancybox') %> <% if (config.import && config.import.script){ %> <% (config.import.script||[]).forEach(function(item){ %> <%- item %><% }) %> <% } %>