添加seo功能
This commit is contained in:
@@ -1,3 +1,28 @@
|
||||
import {Metadata} from 'next'
|
||||
import {siteConfig} from '@/config/site'
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return {
|
||||
title: '帮助中心',
|
||||
description: '蓝狐代理帮助中心 - 产品使用教程、常见问题解答、行业资讯、代理IP设置指南',
|
||||
openGraph: {
|
||||
title: '帮助中心',
|
||||
description: '蓝狐代理帮助中心 - 产品使用教程、常见问题解答、行业资讯',
|
||||
images: [
|
||||
{
|
||||
url: siteConfig.ogImage.url,
|
||||
width: siteConfig.ogImage.width,
|
||||
height: siteConfig.ogImage.height,
|
||||
alt: '帮助中心',
|
||||
},
|
||||
],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `${siteConfig.url}/docs`,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default function DocsIndexPage() {
|
||||
return (
|
||||
<div className="text-center text-slate-500 py-12">
|
||||
|
||||
Reference in New Issue
Block a user