Skip to content

lib/head

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.

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"; }[]

Re-exports HeadConfig

Re-exports HeadConfigSchema

Re-exports HeadUserConfig