Skip to content

Commit 8fa8ea4

Browse files
author
zhaoliang
committed
添加自动推送sitemap
1 parent d03fda4 commit 8fa8ea4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

_includes/footer.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,18 @@
3030
</p>
3131
</div>
3232
</footer>
33+
<script>
34+
(function(){
35+
var bp = document.createElement('script');
36+
var curProtocol = window.location.protocol.split(':')[0];
37+
if (curProtocol === 'https') {
38+
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
39+
}
40+
else {
41+
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
42+
}
43+
var s = document.getElementsByTagName("script")[0];
44+
s.parentNode.insertBefore(bp, s);
45+
})();
46+
</script>
3347
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

0 commit comments

Comments
 (0)