docs: add "head" config to app-configs (#1011)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/1020/head
Jenni 2 years ago committed by GitHub
parent 0006cb67ec
commit 424c882a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,6 +55,28 @@ export default {
} }
``` ```
## head
- Type: `HeadConfig[]`
- Default: `[]`
Additional elements to render in the `<head>` 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: <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
]
}
```
```ts
type HeadConfig =
| [string, Record<string, string>]
| [string, Record<string, string>, string]
```
## ignoreDeadLinks ## ignoreDeadLinks
- Type: `boolean` - Type: `boolean`

Loading…
Cancel
Save