<% if (theme.search && theme.search.enable) { %> <% } %> <% if (theme.services.scrollreveal == true) { %> <% } %> <% if (theme.services.nodewaves == true) { %> <% } %> <% if (theme.services.busuanzi == true) { %> <% } %> <% if (theme.services.fastclick == true) { %> <% } %> <% if (theme.services.share == true && config.mob && config.mob.app_key) { %> <% if (page.layout == 'post' && page.share != false) { %> <% } %> <% } %> <% var enableDisqus = false; var enableLivere = false; var enableValine = false; if (page && page.comments != false) { if (config.disqus_shortname) { enableDisqus = true; } if (config.livere_uid) { enableLivere = true; } if (theme.valine && theme.valine.enable && config.leancloud) { enableValine = true; } } %> <% if (enableDisqus){ %> <% } %> <% if (enableLivere){ %> <% } %> <% if (enableValine){ %> <% if (theme.valine.volantis == true) { %> <% if (theme.services.cdn == true) { %> <% } else { %> <%- js('js/volantis.js') %> <% } %> <% } else { %> <% } %> <% } %> <% if (theme.services.cdn == true) { %> <%- js([theme.info.cdn + 'js/app.js', theme.info.cdn + 'js/search.js']) %> <% } else { %> <%- js(['js/app.js', 'js/search.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 %><% }) %> <% } %>