src/lib/seo.ts
file. This file provides a set of utilities to generate consistent and customizable metadata for your pages and blog posts.
Metadata defaults
You can configure the default metadata in thesrc/config/config.ts
file:
Metadata for individual pages
To generate metadata for a page, use thegenerateMetadata
function:
Metadata for blog posts
For blog posts, use thegenerateBlogMetadata
function:
Opengraph and Twitter Images
At least don’t forget to add an custom image for the opengraph and twitter cards. You can do this by replacing the existing files in thesrc/app
folder:
src/app/opengraph-image.jpg
src/app/twitter-image.jpg