Skip to content

Commit

Permalink
.ejs文件没push上去,现补充
Browse files Browse the repository at this point in the history
  • Loading branch information
yuangezhizao authored and yscoder committed Dec 4, 2016
1 parent c7c925f commit 9d822b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions layout/_partial/baidu.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<% if (theme.baidu_tongji){ %>
<!-- Baidu Tongji -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?【请自行修改此处】";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- End Baidu Tongji -->
<% } %>
<!-- Baidu Push -->
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<!-- End Baidu Push -->
5 changes: 5 additions & 0 deletions layout/_partial/tajs.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% if (theme.tajs){ %>
<!-- Tencent Analysis -->
<script type="text/javascript" src="https://tajs.qq.com/stats?sId=<%=theme.tajs %>" charset="UTF-8"></script>
<!-- End Tencent Analysis -->
<% } %>

0 comments on commit 9d822b8

Please sign in to comment.