Skip to content

Commit

Permalink
docs: add "head" config to app-configs (#1011)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
postmodernistx and brc-dd committed Jul 19, 2022
1 parent 0006cb6 commit 424c882
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/config/app-configs.md
Expand Up @@ -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
- Type: `boolean`
Expand Down

0 comments on commit 424c882

Please sign in to comment.