diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index 54657e3f..db8359f3 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -55,6 +55,33 @@ export default { } ``` +## head + +- Type: `[string, Record]` or `[string, Record, string]` +- Default: `none` + +This will render entries in the `` tag in the page HTML. + +```ts +export default { + head: [ + ['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }], + ['meta', { property: 'og:title', content: 'VitePress' }], + ] +} +``` + +If needed this can also be used to include script tags. + +```ts +export default { + head: [ + [ 'script', { async: 'async', src: 'https://external-script' } ], + [ 'script', {}, `console.log('VitePress!')`] // inside script tag. + ] +} +``` + ## ignoreDeadLinks - Type: `boolean` @@ -172,4 +199,3 @@ export default { titleTemplate: 'Vite & Vue powered static site generator' } ``` -