From 2b404bf550a536ba9af7279574930260879c41f6 Mon Sep 17 00:00:00 2001 From: zknb-666 <2865467965@qq.com> Date: Wed, 11 Jan 2023 18:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=BA=A6=E7=BB=9F=E8=AE=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 4 ++-- _includes/head.html | 20 ++++++++------------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/_config.yml b/_config.yml index ba27731..d64cfda 100644 --- a/_config.yml +++ b/_config.yml @@ -43,8 +43,8 @@ meting: # 百度统计 # 使用博客模板请去掉或者更换 id baidu: - id: 78dabddbcdea439ca4959d5e2057b184 - + id: 47d66309bf31e5e22c53872829a68d1e + # Google Analytics # 使用博客模板请去掉或者更换 id #ga: diff --git a/_includes/head.html b/_includes/head.html index 327da74..2c5f491 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -43,18 +43,14 @@ {% if site.baidu.id %} + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?{{site.baidu.id}}"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + {% endif %}