Skip to content

LayoutForArticle Reference

The LayoutForArticle component generates the metadata for a page, including the title, description, canonical URL, Open Graph and Twitter metadata, and Article-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: string

The headline or title of the article. If not specified, it defaults to title.

type: string[]

An array of image routes associated with the article.

type: Date

The date when the article was first published.

type: Date

The date when the article was last modified.

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

An array of author objects. Each author must have a name and a url property.

type: string

A custom ID for the script tag.