feat: update blog posts and improve cookie consent management
This commit is contained in:
@@ -32,15 +32,18 @@ export async function generateMetadata({ params }: BlogPostPageProps): Promise<M
|
||||
};
|
||||
}
|
||||
|
||||
const pageTitle = post.metaTitle || post.title;
|
||||
const pageDescription = post.metaDescription || post.excerpt;
|
||||
|
||||
return {
|
||||
title: `${post.title} | Blog ThermCool`,
|
||||
description: post.excerpt,
|
||||
title: pageTitle,
|
||||
description: pageDescription,
|
||||
alternates: {
|
||||
canonical: `/blog/${post.slug}`,
|
||||
},
|
||||
openGraph: {
|
||||
title: post.title,
|
||||
description: post.excerpt,
|
||||
title: pageTitle,
|
||||
description: pageDescription,
|
||||
type: 'article',
|
||||
publishedTime: post.date,
|
||||
authors: [post.author || companyDetails.shortName],
|
||||
|
||||
Reference in New Issue
Block a user