What you need to know

A generic site title on every article makes pages harder to distinguish. Route-level metadata can use the article headline, summary, canonical URL, and preview image.

How to apply it

Export generateMetadata from the dynamic page, look up the post using the resolved slug, and return a concise description and canonical URL. Use the same content for Open Graph and Twitter cards.

Common mistake to avoid

Do not return metadata for a slug that the route will later reject. Keep metadata lookup and page lookup based on the same validated post.