type Crumb = { /** Visible name of the breadcrumb (e.g. 'Usługi'). */ name: string; /** Absolute URL of this crumb (e.g. 'https://example.com/pl/uslugi'). */ url: string; }; /** * Builds BreadcrumbList JSON-LD (schema.org) for a page's position in the site * hierarchy. Google can show breadcrumbs in the result (Dom › Usługi › Detailing) * and uses them to understand structure — a signal that helps navigational * results and sitelinks. * * Unlike Organization/WebSite (site-wide, root layout), breadcrumbs are * PER-PAGE — build them from the page's ancestry and emit on that page: * * import { buildBreadcrumbJsonLd } from '@intecion/ipal-kit' * const jsonLd = buildBreadcrumbJsonLd([ * { name: 'Strona główna', url: `${base}/pl` }, * { name: 'Usługi', url: `${base}/pl/uslugi` }, * { name: 'Detailing', url: `${base}/pl/uslugi/detailing` }, * ]) *