Merge pull request #931 from timlrx/fix/genPageMetadata

standardize description and og:description
This commit is contained in:
Timothy 2024-06-02 21:39:08 +08:00 committed by GitHub
commit cd25e6138a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ interface PageSEOProps {
export function genPageMetadata({ title, description, image, ...rest }: PageSEOProps): Metadata {
return {
title,
description: description || siteMetadata.description,
openGraph: {
title: `${title} | ${siteMetadata.title}`,
description: description || siteMetadata.description,