From 424c882a6da709f3176ffc5c1f29002c91577ac1 Mon Sep 17 00:00:00 2001 From: Jenni Date: Tue, 19 Jul 2022 10:28:35 +0300 Subject: [PATCH] docs: add "head" config to app-configs (#1011) Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- docs/config/app-configs.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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`