genPageMetadata Reference
The genPageMetadata function generates the metadata for a page, including the title, description, canonical URL, and Open Graph and Twitter metadata.
Parameters
Section titled “Parameters”The genPageMetadata function accepts one parameter, an object containing the following properties:
title (required)
Section titled “title (required)”type: string
The title of the page.
description (required)
Section titled “description (required)”type: string
The description of the page.
pageRoute (required)
Section titled “pageRoute (required)”type: string
The route for the page.
type: string
The URL of the Open Graph image. If not specified, defaults to the Open Graph defined in defineSeoConfig.