Skip to content

Commit 7efcdee

Browse files
authored
Feat/baidu statistics (#1526)
* feat: 🎸 import baidu-statistics * 0.11.7
1 parent 33a2fca commit 7efcdee

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docusaurus/docusaurus.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const config = {
2323
],
2424
scripts: [
2525
'/js/gitter-sidecar.js',
26+
'/js/baidu-statistics.js',
2627
{ src: 'https://sidecar.gitter.im/dist/sidecar.v1.js', async: true },
2728
],
2829
themeConfig,
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var _hmt = _hmt || [];
2+
(function() {
3+
var hm = document.createElement("script");
4+
hm.src = "https://hm.baidu.com/hm.js?eef0e59d192a0783a44dc3744133d15e";
5+
var s = document.getElementsByTagName("script")[0];
6+
s.parentNode.insertBefore(hm, s);
7+
})();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechaty-docusaurus",
3-
"version": "0.11.6",
3+
"version": "0.11.7",
44
"description": "Wechaty Official Website for Documentations",
55
"private": true,
66
"type": "module",

0 commit comments

Comments
 (0)