From 7adc6dfb40d5396b6d7f8e5c293fa5ca9f72eb00 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sun, 27 Nov 2022 20:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=99=BE=E5=BA=A6=E7=BB=9F=E8=AE=A1=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/head.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config/head.ts b/docs/.vitepress/config/head.ts index 305847344..88997d32b 100644 --- a/docs/.vitepress/config/head.ts +++ b/docs/.vitepress/config/head.ts @@ -16,5 +16,14 @@ export const head: HeadConfig[] = [ ['meta', { property: 'og:description', content: metaData.description }], ['meta', { property: 'og:site', content: metaData.site }], ['meta', { property: 'og:site_name', content: metaData.title }], - ['meta', { property: 'og:image', content: metaData.image }] + ['meta', { property: 'og:image', content: metaData.image }], + + // 百度统计代码:https://tongji.baidu.com + ['script', {}, `var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?53af4b1a12fbe40810ca7ad39f8db9c7"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })();`] ] \ No newline at end of file