diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index b9e3be6d..4363c127 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -55,6 +55,28 @@ export default { } ``` +## head + +- Type: `HeadConfig[]` +- Default: `[]` + +Additional elements to render in the `` tag in the page HTML. The user-added tags are rendered before the closing `head` tag, after VitePress tags. + +```ts +export default { + head: [ + ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }] + // would render: + ] +} +``` + +```ts +type HeadConfig = + | [string, Record] + | [string, Record, string] +``` + ## ignoreDeadLinks - Type: `boolean`