lib/head
Esta página aún no está disponible en tu idioma.
Functions
Section titled “Functions”createHead()
Section titled “createHead()”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
Section titled “Parameters”defaults
Section titled “defaults”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"
;
}[][]
Returns
Section titled “Returns”{
attrs
: Record
<string
, undefined
| string
| boolean
>;
content
: string
;
tag
: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template"
;
}[]
References
Section titled “References”HeadConfig
Section titled “HeadConfig”Re-exports HeadConfig
HeadConfigSchema
Section titled “HeadConfigSchema”Re-exports HeadConfigSchema
HeadUserConfig
Section titled “HeadUserConfig”Re-exports HeadUserConfig