docs: preload home page images

pull/2104/head
Evan You 2 years ago
parent 32dfaf5adc
commit 5dd2a233b1

@ -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: {

Loading…
Cancel
Save