Interface

PageData Reference

Full PageData interface

Interface

Defined in scripts/generate-content.ts.

Fields

interface PageData {
  id?: string
  title: string
  slug: string
  layout?: 'landing' | 'standard' | 'docs'
  blocks?: ContentBlock[]
  updatedAt?: string
  date?: string
  site?: string
  topNav?: { enabled?: boolean; links?: Array<{ text: string; url: string }> }
  contentType?: 'article' | 'guide' | 'event'
  eventDate?: string
  tags?: Array<{ tag: string }> | string[]
  seo?: {
    metaTitle?: string
    metaDescription?: string
    ogImage?: string | { url: string }
    noIndex?: boolean
    canonicalUrl?: string
  }
  description?: string
  draft?: boolean
  content?: string
  docsSection?: string
  docsOrder?: number
  outline?: Array<{ title: string; id: string; depth?: number }>
}

title and slug are required. layout defaults to standard. docsSection, docsOrder, outline are for docs layout.

Next: SiteSettingsData Reference

Menu
In this section