1
0
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:
wizardforcel 2020-11-23 13:30:43 +08:00
parent 94266a3fc8
commit 5845516e64
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 --> <!-- google ads -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <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 --> <!-- google webmaster -->
<meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" /> <meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
</head> </head>
@ -68,6 +57,7 @@
themeColor: '#25a4cf', themeColor: '#25a4cf',
repo: 'apachecn/lmpythw-zh', repo: 'apachecn/lmpythw-zh',
plugins: [window.docsPlugin], plugins: [window.docsPlugin],
bdStatId: '38525fdac4b5d4403900b943d4e7dd91',
search: { search: {
paths: 'auto', paths: 'auto',
placeholder: '搜索', placeholder: '搜索',
@ -86,5 +76,6 @@
<script src="asset/prism-python.min.js"></script> <script src="asset/prism-python.min.js"></script>
<script src="asset/docsify-copy-code.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-push.js"></script>
<script src="asset/docsify-baidu-stat.js"></script>
</body> </body>
</html> </html>