Skip to content

LayoutForBreadcrumb Reference

The LayoutForBreadcrumb component generates the metadata for a page, including the title, description, canonical URL, Open Graph and Twitter metadata, and Breadcrumb-specific JSON-LD structured data.

type: string

The title of the page.

type: string

The description of the page.

type: string

The URL of the Open Graph image. If not specified, it defaults to the Open Graph defined in seoInAstro integration.

type: string

The language of the page (e.g., “es”, “fr”). If not specified, it defaults to “en”.

type: Array<{ name: string; route: string }>

An array of breadcrumb items representing the navigation hierarchy. Each item must have:

  • name (string): The display name for the breadcrumb item
  • route (string): The route path for the breadcrumb item (e.g., /products, /blog/post-1)

The items should be ordered from the highest level (typically “Home”) to the current page.

type: string

A custom ID for the script tag.