Skip to content

Commit

Permalink
feat: 优化网站
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Dec 7, 2024
1 parent 39b8b05 commit 3be3380
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { head, nav, sidebar } from './configs'
const APP_BASE_PATH = basename('')

export default defineConfig({
sitemap: {
hostname: 'https://www.yizhan.wiki'
},


outDir: '../dist',
base: APP_BASE_PATH ? `/${APP_BASE_PATH}/` : '/',

Expand Down
5 changes: 5 additions & 0 deletions docs/.vitepress/configs/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ export const head: HeadConfig[] = [
['link', { rel: 'mask-icon', href: '/favicon.ico', color: '#3eaf7c' }],
['meta', { name: 'msapplication-TileImage', content: '/favicon.ico' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }],
[
'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", "pa3g1fyy1y");',
],
]

0 comments on commit 3be3380

Please sign in to comment.