Skip to content

Commit 0724b3b

Browse files
author
chufan
committed
feat: 站点新增百度统计相关配置
1 parent 02ab183 commit 0724b3b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/.vuepress/config.ts

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ export default defineUserConfig({
2121
// vercel统计 相关配置
2222
[
2323
'script', {type: 'text/javascript', src: '/_vercel/insights/script.js'}
24+
],
25+
// 百度统计
26+
[
27+
'script', {}, `
28+
var _hmt = _hmt || [];
29+
(function() {
30+
var hm = document.createElement("script");
31+
hm.src = "https://hm.baidu.com/hm.js?613c9d7af9e1c9a7f9eef6a55aa2399d";
32+
var s = document.getElementsByTagName("script")[0];
33+
s.parentNode.insertBefore(hm, s);
34+
})();`
2435
]
2536
],
2637
markdown: {

0 commit comments

Comments
 (0)