Skip to content

Commit

Permalink
🔧 build: 添加速度洞察
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Messi committed Dec 19, 2023
1 parent 7ce588c commit 696d46d
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 216 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ TODOs.md
.idea
pnpm-global
.vitepress/cache
package-lock.json
package-lock.json
.vercel
9 changes: 5 additions & 4 deletions .vitepress/configs/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export const head: HeadConfig[] = [
['meta', { name: 'og:site_name', content: 'Theo Notes' }],
// 设置og图片
['meta', { name: 'og:image', content: 'https://theovan.xyz/avatar.png' }],
// 设置google adsense账号
[
'meta',
{ name: 'google-adsense-account', content: 'ca-pub-1897692334666835' }
]
'script',
{},
`window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };`
],
['script', { defersrc: '/_vercel/speed-insights/script.js' }]
]
1 change: 1 addition & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import mediumZoom from 'medium-zoom'
import { inject } from '@vercel/analytics'

inject()

import './custom.css'
import './custom-blocks.css'
import './index.css'
Expand Down
Loading

0 comments on commit 696d46d

Please sign in to comment.