diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 2b6e4c86..359a35e6 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -25,8 +25,13 @@ export default defineConfig({ ] ], - markdown: { - headers: false + transformHead({ page }) { + if (page === 'index.md') { + return [ + ['link', { rel: 'preload', as: 'image', href: '/vue.svg' }], + ['link', { rel: 'preload', as: 'image', href: '/vite.svg' }] + ] + } }, themeConfig: {