Skip to content

LayoutForFaq Reference

The LayoutForFaq component generates the metadata for a page, including the title, description, canonical URL, Open Graph and Twitter metadata, and FAQ-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<{ question: string; answer: string }>

An array of FAQ items. Each item must have:

  • question (string): The question text
  • answer (string): The answer text

type: string

A custom ID for the script tag.