|
|
|
@ -15,8 +15,8 @@ |
|
|
|
|
if(!ROOT.endsWith('/'))ROOT += '/'; |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services) { %> |
|
|
|
|
<% if (theme.services.scrollreveal == true) { %> |
|
|
|
|
|
|
|
|
|
<% if (theme.services.scrollreveal == true) { %> |
|
|
|
|
<script async src="https://cdn.jsdelivr.net/npm/scrollreveal@4.0.5/dist/scrollreveal.min.js"></script> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
$(function() { |
|
|
|
@ -26,8 +26,8 @@ |
|
|
|
|
sr.reveal('.reveal'); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.nodewaves == true) { %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.nodewaves == true) { %> |
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.js"></script> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
$(function() { |
|
|
|
@ -40,11 +40,11 @@ |
|
|
|
|
Waves.init(); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.busuanzi == true) { %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.busuanzi == true) { %> |
|
|
|
|
<script async src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js"></script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.fastclick == true) { %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.fastclick == true) { %> |
|
|
|
|
<!-- fastclick --> |
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/fastclick@1.0.6/lib/fastclick.min.js"></script> |
|
|
|
|
<script> |
|
|
|
@ -52,14 +52,14 @@ |
|
|
|
|
FastClick.attach(document.body) |
|
|
|
|
}, false) |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.share == true && config.mob && config.mob.app_key) { %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (theme.services.share == true && config.mob && config.mob.app_key) { %> |
|
|
|
|
<% if (page.layout == 'post' && page.share != false) { %> |
|
|
|
|
<script id="-mob-share" src="//f1.webshare.mob.com/code/mob-share.js?appkey=<%- config.mob.app_key %>"></script> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
<% |
|
|
|
|
var enableDisqus = false; |
|
|
|
|
var enableLivere = false; |
|
|
|
|
var enableValine = false; |
|
|
|
@ -74,8 +74,8 @@ |
|
|
|
|
enableValine = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
%> |
|
|
|
|
<% if (enableDisqus){ %> |
|
|
|
|
%> |
|
|
|
|
<% if (enableDisqus){ %> |
|
|
|
|
<script> |
|
|
|
|
var disqus_shortname = '<%= config.disqus_shortname %>'; |
|
|
|
|
<% if (page.permalink){ %> |
|
|
|
@ -89,8 +89,8 @@ |
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
|
|
|
|
})(); |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (enableLivere){ %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (enableLivere){ %> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
(function(d, s) { |
|
|
|
|
var j, e = d.getElementsByTagName(s)[0]; |
|
|
|
@ -101,8 +101,8 @@ |
|
|
|
|
e.parentNode.insertBefore(j, e); |
|
|
|
|
})(document, 'script'); |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (enableValine){ %> |
|
|
|
|
<% } %> |
|
|
|
|
<% if (enableValine){ %> |
|
|
|
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> |
|
|
|
|
<% if (theme.services.volantis == true) { %> |
|
|
|
|
<% if (theme.services && theme.services.cdn == true) { %> |
|
|
|
@ -138,19 +138,21 @@ |
|
|
|
|
highlight:'<%= config.valine.highlight %>' |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
<% } %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script> |
|
|
|
|
|
|
|
|
|
<% if (theme.services.cdn == true && config.theme_cdn) { %> |
|
|
|
|
<% if (theme.services.cdn == true && config.theme_cdn) { %> |
|
|
|
|
<% if (config.theme_cdn == true) { %> |
|
|
|
|
<%- js([theme.info.cdn + 'js/app.js', theme.info.cdn + 'js/search.js']) %> |
|
|
|
|
<%- js([theme.info.cdn + 'js/app.js', theme.info.cdn + 'js/search.js', theme.info.cdn + 'js/clipboard-use.js']) %> |
|
|
|
|
<% } else if (config.theme_cdn.length > 0) { %> |
|
|
|
|
<%- js([config.theme_cdn + 'js/app.js', config.theme_cdn + 'js/search.js']) %> |
|
|
|
|
<% } %> |
|
|
|
|
<% } else { %> |
|
|
|
|
<%- js(['js/app.js', 'js/search.js']) %> |
|
|
|
|
<%- js([config.theme_cdn + 'js/app.js', config.theme_cdn + 'js/search.js', config.theme_cdn + 'js/clipboard-use.js']) %> |
|
|
|
|
<% } %> |
|
|
|
|
<% } else { %> |
|
|
|
|
<%- js(['js/app.js', 'js/search.js', 'js/clipboard-use.js']) %> |
|
|
|
|
<% } %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if (page.layout == 'links') { %> |
|
|
|
|
<%- js('https://cdn.jsdelivr.net/gh/toddmotto/echo@1.7.3/src/echo.js') %> |
|
|
|
|
<script> |
|
|
|
|