mirror of
https://github.com/apachecn/lmpythw-zh.git
synced 2025-05-29 20:52:34 +00:00
2020-11-23 13:30:43
This commit is contained in:
parent
94266a3fc8
commit
5845516e64
13
asset/docsify-baidu-stat.js
Normal file
13
asset/docsify-baidu-stat.js
Normal 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
|
||||
})()
|
13
index.html
13
index.html
@ -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>
|
||||
@ -68,6 +57,7 @@
|
||||
themeColor: '#25a4cf',
|
||||
repo: 'apachecn/lmpythw-zh',
|
||||
plugins: [window.docsPlugin],
|
||||
bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
|
||||
search: {
|
||||
paths: 'auto',
|
||||
placeholder: '搜索',
|
||||
@ -86,5 +76,6 @@
|
||||
<script src="asset/prism-python.min.js"></script>
|
||||
<script src="asset/docsify-copy-code.min.js"></script>
|
||||
<script src="asset/docsify-baidu-push.js"></script>
|
||||
<script src="asset/docsify-baidu-stat.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user