diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 64950b8ae..77533b33b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -49,7 +49,7 @@ const nav: ThemeConfig['nav'] = [ { text: 'UI 组件', link: 'https://ui-libs.vercel.app/' }, { text: '证书', - link: 'https://certification.vuejs.org/?ref=vuejs-nav' + link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' }, { text: '找工作', link: 'https://vuejobs.com/?ref=vuejs' }, { text: 'T-Shirt 商店', link: 'https://vue.threadless.com/' } @@ -113,6 +113,7 @@ const nav: ThemeConfig['nav'] = [ link: '/about/community-guide' }, { text: '行为规范', link: '/about/coc' }, + { text: '隐私政策', link: '/about/privacy' }, { text: '纪录片', link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI' @@ -634,6 +635,14 @@ export default defineConfigWithTheme({ 'utf-8' ) ], + [ + 'script', + {}, + fs.readFileSync( + path.resolve(__dirname, './inlined-scripts/uwu.js'), + 'utf-8' + ) + ], [ 'script', { diff --git a/.vitepress/inlined-scripts/uwu.js b/.vitepress/inlined-scripts/uwu.js new file mode 100644 index 000000000..5b25107e4 --- /dev/null +++ b/.vitepress/inlined-scripts/uwu.js @@ -0,0 +1,3 @@ +if (location.search.includes('?uwu')) { + document.documentElement.classList.add('uwu') +} diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue index 5ad71b7b5..daa5ea72e 100644 --- a/.vitepress/theme/components/Home.vue +++ b/.vitepress/theme/components/Home.vue @@ -1,5 +1,5 @@