Skip to content

Commit

Permalink
fix issues #149
Browse files Browse the repository at this point in the history
fix issues #149

fix issues #149

 This is the 4th commit message:

fix issues #149
  • Loading branch information
allenn committed Sep 24, 2016
1 parent 439616c commit e294412
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,4 @@ CDN:
pace_js: //cdn.bootcss.com/pace/1.0.2/pace.min.js
clipboard: //cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js
mathjax: //cdn.bootcss.com/mathjax/2.6.1/MathJax.js
scrollreveal: //cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js
scrollreveal: //cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js
3 changes: 1 addition & 2 deletions layout/_partial/after-footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<script data-main="<%-config.root%>js/main.js" src="<%- theme.CDN.require %>"></script>
<%- partial('_partial/background') %>
<%- partial('comments/count-comment') %>
<%- partial('google-analytics') %>
<% if (theme.mathjax){ %>
<%- partial('mathjax') %>
<% } %>
Expand All @@ -14,4 +13,4 @@
}) %>
<%- partial('tab-title-change') %>
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
</script>
20 changes: 6 additions & 14 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<meta name="author" content="<%= config.author %>" />

<% if (is_home()){ %>
<% if (theme.baidu_site) { %>
<% if (theme.baidu_site) { %>
<meta name="baidu-site-verification" content="<%- theme.baidu_site %>" />
<% } %>
<% if (theme.google_site) { %>
<% if (theme.google_site) { %>
<meta name="google-site-verification" content="<%- theme.google_site %>" />
<% } %>
<% } %>
Expand Down Expand Up @@ -101,16 +101,8 @@ if ( is_archive() ) {
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<%-theme.share.addthis_pubid%>"></script>
<% } %>

<% if (theme.baidu_tongji){ %>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?<%=theme.baidu_tongji%>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<% } %>
<%- partial('head/baidu-tongji') -%>

<%- partial('head/google-analytics') -%>

</head>
</head>
12 changes: 12 additions & 0 deletions layout/_partial/head/baidu-tongji.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Baidu tongji -->
<% if (theme.baidu_tongji){ %>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?<%=theme.baidu_tongji%>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<% } %>
File renamed without changes.

0 comments on commit e294412

Please sign in to comment.