lib/head
Functions
'Read the “', Functions, '” section'createHead()
'Read the “', createHead(), '” section'function createHead(defaults: | undefined | { attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template"; }[], ...heads: { attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template"; }[][]): { attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template"; }[]
Defined in: studiocms/packages/studiocms/src/lib/head.ts:13
Create a fully parsed, merged, and sorted head entry array from multiple sources.
Parameters
'Read the “', Parameters, '” section'undefined
| {
attrs
: Record
<string
, undefined
| string
| boolean
>;
content
: string
;
tag
: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template"
;
}[]
…{
attrs
: Record
<string
, undefined
| string
| boolean
>;
content
: string
;
tag
: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template"
;
}[][]
{
attrs
: Record
<string
, undefined
| string
| boolean
>;
content
: string
;
tag
: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template"
;
}[]
References
'Read the “', References, '” section'HeadConfig
'Read the “', HeadConfig, '” section'Re-exports HeadConfig
HeadConfigSchema
'Read the “', HeadConfigSchema, '” section'Re-exports HeadConfigSchema
HeadUserConfig
'Read the “', HeadUserConfig, '” section'Re-exports HeadUserConfig