Skip to content

Commit 405dec3

Browse files
committed
[feat]百度统计
1 parent 47a6b08 commit 405dec3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/.vuepress/config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ module.exports = config({
2020
"script",
2121
{ src: "https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js" },
2222
],
23+
// 添加百度统计
24+
[
25+
"script",
26+
{},
27+
`<script>
28+
var _hmt = _hmt || [];
29+
(function() {
30+
var hm = document.createElement("script");
31+
hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743";
32+
var s = document.getElementsByTagName("script")[0];
33+
s.parentNode.insertBefore(hm, s);
34+
})();`
35+
]
2336
],
2437

2538
themeConfig: {

0 commit comments

Comments
 (0)