2020-11-23 13:16:43

This commit is contained in:
wizardforcel
2020-11-23 13:16:43 +08:00
parent 682c1a8200
commit 6151248e69
2 changed files with 15 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
(function(){
var plugin = function(hook) {
hook.doneEach(function() {
window._hmt = window._hmt || []
var hm = document.createElement("script")
hm.src = "https://hm.baidu.com/hm.js?" + window.$docsify.bdStatId
document.querySelector("article").appendChild(hm)
})
}
var plugins = window.$docsify.plugins || []
plugins.push(plugin)
window.$docsify.plugins = plugins
})()

View File

@@ -13,17 +13,6 @@
<!-- google ads -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- baidu stats -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?38525fdac4b5d4403900b943d4e7dd91";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- google webmaster -->
<meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
</head>
@@ -71,6 +60,7 @@
alias: {
'/.*/SUMMARY.md': '/SUMMARY.md',
},
bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
search: {
paths: 'auto',
placeholder: '搜索',
@@ -93,5 +83,6 @@
<script src="asset/docsify-copy-code.min.js"></script>
<script src="asset/docsify-baidu-push.js"></script>
<script src="asset/docsify-baidu-push.js"></script>
<script src="asset/docsify-baidu-stat.js"></script>
</body>
</html>