Skip to content

Commit

Permalink
Merge pull request #112 from GuoXiCheng/dev-c
Browse files Browse the repository at this point in the history
update
  • Loading branch information
GuoXiCheng authored Oct 11, 2024
2 parents 694da62 + f9133ac commit 645c82a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export default defineConfig(
description: "JavaScript full stack knowledge",
base: "/",
lastUpdated: true,
head: [["link", { rel: "icon", type: "image/x-icon", href: "/images/favicon.ico" }]],
head: [
["link", { rel: "icon", type: "image/x-icon", href: "/images/favicon.ico" }],
["script", { src: "/js/baidu-analytics.js", async: true }],
],
themeConfig: {
editLink: {
pattern: "https://github.com/GuoXiCheng/JSFullStack/edit/main/src/:path",
Expand Down
8 changes: 8 additions & 0 deletions src/public/js/baidu-analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ec5bb929c047914f94a7379c975f6c62";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();

0 comments on commit 645c82a

Please sign in to comment.