Create a HeadManager, optionally seeded from an existing context.
An initial head context to extend.
Set an alternate link (e.g. hreflang or RSS feed).
The alternate URL.
Extra attributes (e.g. { hreflang: 'fr' }, { type: 'application/rss+xml' }).
Set the <base> element.
The base href.
Optionaltarget: string
The base target.
Set attributes on the <body> element.
Attribute map.
Set the canonical URL (<link rel="canonical">).
The canonical URL.
Set the document character set (<meta charset>).
The charset (default utf-8).
Set the meta description (and the og:description fallback source).
The description text.
Set attributes on the <html> element.
Attribute map (e.g. { lang: 'en' }).
Add a JSON-LD structured-data block (<script type="application/ld+json">).
The JSON-LD object.
Add a link descriptor (deduped by rel+href).
The link descriptor.
Merge another head context (or manager) into this one. Later values win; metas/links are deduped. Enables hierarchical heads (layout head + page head).
The head context or manager to merge in.
Add or replace a raw meta descriptor (deduped by name/property/charset).
The meta descriptor.
Add Open Graph meta tags. Falls back to the current title/description when omitted.
Open Graph options.
Add a preload/prefetch/modulepreload link.
The resource URL.
Optionalas: string
The as attribute (e.g. script, style, font, image).
The relationship (default preload).
Set robots directives (<meta name="robots">).
Robots directives.
Add a script descriptor (external via src, or inline via content).
The script descriptor.
Add an inline style block.
The CSS text.
Extra attributes (e.g. media).
Add a stylesheet link.
The stylesheet URL.
Extra attributes (e.g. media).
Set the theme color meta.
A CSS color.
Set the document title.
The title text.
Set a title template, e.g. '%s — Stone.js' where %s is replaced by the title.
The template string containing %s.
Produce the final head context. The title template (if any) is applied to the title.
The resolved HeadContext.
Add Twitter card meta tags. Falls back to the current title/description when omitted.
Twitter card options.
Set the viewport meta (default mobile-friendly value).
The viewport content.
A fluent head builder. Every method returns
thisfor chaining; toContext produces the final HeadContext.