<% if (theme.search && theme.search.enable) { %> <% } %> <% if (config.import && config.import.js == true) { %> <%- js([theme.theme_info.cdn + 'js/app.js', theme.theme_info.cdn + 'js/search.js']) %> <% } else if (config.import && config.import.js && config.import.js.length > 0) { %> <%- js(config.import.js) %> <% } else { %> <%- js(['js/app.js', 'js/search.js']) %> <% } %> <% if (page.comments) { %> <% if (config.disqus_shortname){ %> <% } %> <% if (config.livere_uid){ %> <% } %> <% if (config.valine){ %> <% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %> <% if (config.import && config.import.js == true) { %> <% } else { %> <%- js('js/volantis.js') %> <% } %> <% } %> <% } %> <% } %> <% if (config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %> <% } %>