docs(config): add head section

pull/878/head
Allen Tao 3 years ago committed by GitHub
parent 29d44e7a22
commit dbcf42a3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -173,3 +173,30 @@ export default {
}
```
## head
- Type: `array`
- Default: `[]`
Extra tags to inject into the page HTML `<head>`. You can specify each tag in the form of `[tagName, { attrName: attrValue }, innerHTML?]`. For example, with a structure like this:
```
.
├─ docs
│ ├─ .vitepress
│ │ └─ config.js
| └─ public
| └─ logo.png
└─ package.json
```
You can add a custom favicon:
```ts
export default {
head: [
['link', { rel: 'icon', href: '/public/logo.png' }]
]
}
```

Loading…
Cancel
Save