<% if (theme.search && theme.search.enable) { %> <% } %> <% if (theme.services) { %> <% if (theme.services.scrollreveal == true) { %> <% } %> <% if (theme.services.nodewaves == true) { %> <% } %> <% if (theme.services.busuanzi == true) { %> <% } %> <% if (theme.services.fastclick == true) { %> <% } %> <% if (theme.services.leancloud_visitors == true) { %> <% if (config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %> <% } %> <% } %> <% var displayComments = false; if (page && theme.services) { if ((config.disqus_shortname || config.livere_shortname || config.valine) && theme.services.comments == true && page.comments != false) { displayComments = true; } } %> <% if (displayComments == true) { %> <% if ((page.layout == 'post' && page.comments != false) || page.comments == true) { %> <% if (config.disqus_shortname){ %> <% } %> <% if (config.livere_uid){ %> <% } %> <% if (config.valine){ %> <% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %> <% if (theme.services && theme.services.cdn == true) { %> <% } else { %> <%- js('js/volantis.js') %> <% } %> <% } %> <% } %> <% } %> <% } %> <% 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 (config.import && config.import.js && config.import.js.length > 0) { %> <%- js(config.import.js) %> <% } %>