standerdize description and og:description

This commit is contained in:
Timothy Lin 2024-06-02 21:36:29 +08:00
parent 0ecfba4706
commit d62fa4633e

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,