Skip to content

Commit

Permalink
feat: 添加Microsoft clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
MuYi086 committed Jun 17, 2024
1 parent e8d679c commit dc50537
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ import { defineConfig } from 'vitepress'
export default defineConfig({
lang: 'zh',
title: 'blog',
description: "MuYi086's blog",
description: 'MuYi086\'s blog',
head: [
// https://animate.style/
['link',{ href: 'https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.min.css', rel: 'stylesheet' }],
// https://ant-design.antgroup.com/index-cn
['link',{ href: 'https://cdn.bootcdn.net/ajax/libs/ant-design-vue/4.2.2/reset.css', rel: 'stylesheet' }],
['script',
{},
`(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src='https://www.clarity.ms/tag/'+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, 'clarity', 'script', 'mo15sqq8xd')
`
]
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
Expand Down

0 comments on commit dc50537

Please sign in to comment.