Page
Overview
Page
represents the structure and metadata for a webpage. It supports different page types, such as simple content pages and article pages, using a discriminated union.
Attributes
type
type: literal = 'page'
Discriminant for this type, indicating it represents a generic page.
hideHeader
type: boolean (optional)
Indicates whether the header should be hidden on this page.
lastModified
type: Date (optional)
The date and time when the page was last modified. Useful for caching and sitemap generation.
handle
type: string
The unique identifier or slug for the page. Commonly used for routing.
id
type: string
A unique identifier for the page.
title
type: string
The title of the page, displayed in the browser tab and metadata.
description
type: string
A description of the page content, used for SEO and metadata.
injectIndex
type: number (optional)
Defines the index at which content should be injected into the page.
headerOverlap
type: boolean (optional)
Indicates whether the header overlaps with the page content.
openGraph
type: OpenGraph (optional)
The OpenGraph metadata associated with the page for social media sharing.
keywords
type: string (optional)
A list of keywords associated with the page for SEO purposes.
Variants
Page
is a union type that supports the following variants: