添加seo功能
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import {Suspense} from 'react'
|
||||
import {Metadata} from 'next'
|
||||
import {siteConfig} from '@/config/site'
|
||||
import BreadCrumb from '@/components/bread-crumb'
|
||||
import Wrap from '@/components/wrap'
|
||||
import Purchase, {TabType} from '@/components/composites/purchase'
|
||||
import {Suspense} from 'react'
|
||||
import HomePage from '@/components/home/page'
|
||||
|
||||
export type ProductPageProps = {
|
||||
@@ -10,6 +12,28 @@ export type ProductPageProps = {
|
||||
}>
|
||||
}
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return {
|
||||
title: '产品中心',
|
||||
description: '为您的业务提供多样化代理产品 - 短效代理、长效代理、固定IP代理、SOCKS5代理,高可用性、低延迟',
|
||||
openGraph: {
|
||||
title: '产品中心',
|
||||
description: '为您的业务提供多样化代理产品 - 短效代理、长效代理、固定IP代理、SOCKS5代理,高可用性、低延迟',
|
||||
images: [
|
||||
{
|
||||
url: siteConfig.ogImage.url,
|
||||
width: siteConfig.ogImage.width,
|
||||
height: siteConfig.ogImage.height,
|
||||
alt: '产品中心',
|
||||
},
|
||||
],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `${siteConfig.url}/product`,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default function ProductPage(props: ProductPageProps) {
|
||||
return (
|
||||
<HomePage path={[
|
||||
|
||||
Reference in New Issue
Block a user