diff --git a/.vscode/settings.json b/.vscode/settings.json index 106a2e9..161082d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "adsense", "CDUT", "colorit", "Hackathon", diff --git a/src/.vitepress/config.mts b/src/.vitepress/config.mts index 9e3b829..1949add 100644 --- a/src/.vitepress/config.mts +++ b/src/.vitepress/config.mts @@ -17,5 +17,32 @@ export default defineConfig({ ], }, lastUpdated: true, - head: [], + head: [ + [ + "meta", + { + name: "google-adsense-account", + content: "ca-pub-1141212403322647", + }, + ], + [ + "meta", + { + name: "google-site-verification", + content: "71A3myPAsbW4yU-SCkZlmMSVmyagcPQGxCxU2IfHhx4", + }, + ], + [ + 'script', + { + async: true, + src: 'https://www.googletagmanager.com/gtag/js?id=G-L74CKN4BBD', + }, + ], + [ + 'script', + {}, + "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-L74CKN4BBD');", + ], + ], });