我使用的下一个搜索引擎优化代码:
<NextSeo
title={title}
description={description}
canonical={`${siteSettings.author.websiteUrl}${path}`}
openGraph={{
url: `${siteSettings.author.websiteUrl}/${path}`,
title,
description,
images: [
{
url: '/assets/images/logo.png',
width: 800,
height: 600,
alt: 'İstanbulfood',
},
{
url: '/assets/images/logo.png',
width: 900,
height: 800,
alt: 'İstanbulfood',
},
],
}}
/>
您需要在站点标记中使用open graph tags才能在社交媒体中获得丰富的链接支持。
在
openGraph
道具里面,你可以尝试添加另一个属性type: 'website'
吗?也可以在 openGraph 中使用 full url
作为您的 images
。请访问这个链接来测试你的富链接