File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+ var plugin = function ( hook ) {
3
+ hook . doneEach ( function ( ) {
4
+ window . _hmt = window . _hmt || [ ]
5
+ var hm = document . createElement ( "script" )
6
+ hm . src = "https://hm.baidu.com/hm.js?" + window . $docsify . bdStatId
7
+ document . querySelector ( "article" ) . appendChild ( hm )
8
+ } )
9
+ }
10
+ var plugins = window . $docsify . plugins || [ ]
11
+ plugins . push ( plugin )
12
+ window . $docsify . plugins = plugins
13
+ } ) ( )
Original file line number Diff line number Diff line change 13
13
<!-- google ads -->
14
14
< script async src ="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js "> </ script >
15
15
16
- <!-- baidu stats -->
17
- < script >
18
- var _hmt = _hmt || [ ] ;
19
- ( function ( ) {
20
- var hm = document . createElement ( "script" ) ;
21
- hm . src = "https://hm.baidu.com/hm.js?38525fdac4b5d4403900b943d4e7dd91" ;
22
- var s = document . getElementsByTagName ( "script" ) [ 0 ] ;
23
- s . parentNode . insertBefore ( hm , s ) ;
24
- } ) ( ) ;
25
- </ script >
26
-
27
16
<!-- google webmaster -->
28
17
< meta name ="google-site-verification " content ="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo " />
29
18
</ head >
71
60
alias : {
72
61
'/.*/SUMMARY.md' : '/SUMMARY.md' ,
73
62
} ,
63
+ bdStatId : '38525fdac4b5d4403900b943d4e7dd91' ,
74
64
search : {
75
65
paths : 'auto' ,
76
66
placeholder : '搜索' ,
93
83
< script src ="asset/docsify-copy-code.min.js "> </ script >
94
84
< script src ="asset/docsify-baidu-push.js "> </ script >
95
85
< script src ="asset/docsify-baidu-push.js "> </ script >
86
+ < script src ="asset/docsify-baidu-stat.js "> </ script >
96
87
</ body >
97
88
</ html >
You can’t perform that action at this time.
0 commit comments