fix: update metatags gen
This commit is contained in:
@@ -5,7 +5,8 @@ type TMetaInfo = {
|
||||
description: string;
|
||||
companyName: string;
|
||||
phone: string;
|
||||
url: string;
|
||||
host: string;
|
||||
path: string;
|
||||
ogImageTitle: string;
|
||||
ogImageDescription: string;
|
||||
width?: number;
|
||||
@@ -20,7 +21,8 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
|
||||
description,
|
||||
companyName,
|
||||
phone,
|
||||
url,
|
||||
host,
|
||||
path = '',
|
||||
ogImageTitle,
|
||||
ogImageDescription,
|
||||
width = 600,
|
||||
@@ -35,11 +37,10 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
|
||||
openGraph: {
|
||||
title: title,
|
||||
description: description,
|
||||
url: url,
|
||||
url: `${host}${path}`,
|
||||
images: [
|
||||
{
|
||||
url: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
|
||||
secureUrl: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
|
||||
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
|
||||
width: width,
|
||||
height: height,
|
||||
alt: `${title} - ${companyName}`,
|
||||
@@ -56,7 +57,7 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
|
||||
creator: creator,
|
||||
images: [
|
||||
{
|
||||
url: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
|
||||
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
|
||||
width: width,
|
||||
height: height,
|
||||
alt: `${title} - ${companyName}`,
|
||||
|
||||
Reference in New Issue
Block a user