添加seo功能
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {Metadata} from 'next'
|
||||
import {siteConfig} from '@/config/site'
|
||||
import BreadCrumb from '@/components/bread-crumb'
|
||||
import Wrap from '@/components/wrap'
|
||||
import Extract from '@/components/composites/extract'
|
||||
@@ -5,6 +7,28 @@ import HomePage from '@/components/home/page'
|
||||
|
||||
export type CollectPageProps = {}
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return {
|
||||
title: 'IP提取',
|
||||
description: '短效/长效IP提取,高可用性代理IP,支持API调用,即时获取全国各地代理IP,适用于数据采集、网络测试等场景',
|
||||
openGraph: {
|
||||
title: 'IP提取',
|
||||
description: '短效/长效IP提取,高可用性代理IP,支持API调用,即时获取全国各地代理IP',
|
||||
images: [
|
||||
{
|
||||
url: siteConfig.ogImage.url,
|
||||
width: siteConfig.ogImage.width,
|
||||
height: siteConfig.ogImage.height,
|
||||
alt: 'IP提取',
|
||||
},
|
||||
],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `${siteConfig.url}/collect`,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default function CollectPage(props: CollectPageProps) {
|
||||
return (
|
||||
// <main className="mt-20 flex flex-col gap-4">
|
||||
|
||||
Reference in New Issue
Block a user