2015-03-20 13:38:22 +00:00
|
|
|
|
2015-03-19 14:25:53 +00:00
|
|
|
<% if (config.disqus_shortname){ %>
|
|
|
|
<script>
|
|
|
|
var disqus_shortname = '<%= config.disqus_shortname %>';
|
|
|
|
(function(){
|
|
|
|
var dsq = document.createElement('script');
|
|
|
|
dsq.type = 'text/javascript';
|
|
|
|
dsq.async = true;
|
2015-03-22 09:36:01 +00:00
|
|
|
dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments) { %>embed.js<% } else { %>count.js<% } %>';
|
2015-03-19 14:25:53 +00:00
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
|
|
})();
|
|
|
|
</script>
|
2015-04-04 11:41:01 +00:00
|
|
|
<% } else if (config.duoshuo_shortname){ %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var duoshuoQuery = {short_name:"<%= config.duoshuo_shortname %>"};
|
|
|
|
(function() {
|
|
|
|
var ds = document.createElement('script');
|
|
|
|
ds.type = 'text/javascript';ds.async = true;
|
|
|
|
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
|
|
|
|
ds.charset = 'UTF-8';
|
|
|
|
(document.getElementsByTagName('head')[0]
|
|
|
|
|| document.getElementsByTagName('body')[0]).appendChild(ds);
|
|
|
|
})();
|
|
|
|
</script>
|
2015-03-19 14:25:53 +00:00
|
|
|
<% } %>
|
|
|
|
|
2015-03-20 13:38:22 +00:00
|
|
|
<script src="//ajax.useso.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
2015-03-19 14:25:53 +00:00
|
|
|
|
|
|
|
<% if (theme.fancybox){ %>
|
|
|
|
<%- css('fancybox/jquery.fancybox') %>
|
|
|
|
<%- js('fancybox/jquery.fancybox.pack') %>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<%- js('js/script') %>
|