1bf22a8f95
- 新增 COMPANY_INFO.displayName 属性用于页面标题和SEO元数据 - 统一所有页面 metadata 使用 displayName(简体"睿新致远") - 视觉展示元素保留 shortName(繁体"睿新致遠"配合青柳隷書字体) - 修复关于/联系/团队页面标题中公司名重复出现的问题 - 修复新闻ID从数字改为SEO友好slug - 更新结构化数据使用完整公司名 - 修复ESLint报错:引号转义、组件displayName、any类型替换
77 lines
2.0 KiB
TypeScript
77 lines
2.0 KiB
TypeScript
import { COMPANY_INFO } from '@/lib/constants';
|
|
|
|
export function OrganizationSchema() {
|
|
const schema = {
|
|
"@context": "https://schema.org",
|
|
"@type": "Organization",
|
|
"name": COMPANY_INFO.name,
|
|
"alternateName": "诺瓦隆",
|
|
"url": "https://www.novalon.cn",
|
|
"logo": "https://www.novalon.cn/logo.svg",
|
|
"description": "专注于企业数字化转型服务,提供软件开发、云计算、数据分析、信息安全等一站式解决方案",
|
|
"foundingDate": "2026",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressCountry": "CN",
|
|
"addressLocality": "成都",
|
|
"addressRegion": "四川省",
|
|
"streetAddress": "成都市高新区"
|
|
},
|
|
"sameAs": [
|
|
"https://www.novalon.cn"
|
|
]
|
|
};
|
|
|
|
return (
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function WebsiteSchema() {
|
|
const schema = {
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
"name": COMPANY_INFO.name,
|
|
"url": "https://www.novalon.cn",
|
|
"potentialAction": {
|
|
"@type": "SearchAction",
|
|
"target": "https://www.novalon.cn/search?q={search_term_string}",
|
|
"query-input": "required name=search_term_string"
|
|
}
|
|
};
|
|
|
|
return (
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function ServiceSchema() {
|
|
const schema = {
|
|
"@context": "https://schema.org",
|
|
"@type": "Service",
|
|
"serviceType": "企业数字化转型服务",
|
|
"provider": {
|
|
"@type": "Organization",
|
|
"name": COMPANY_INFO.name
|
|
},
|
|
"description": "提供软件开发、云计算、数据分析、信息安全等一站式数字化转型解决方案",
|
|
"areaServed": {
|
|
"@type": "Country",
|
|
"name": "China"
|
|
}
|
|
};
|
|
|
|
return (
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
|
|
/>
|
|
);
|
|
}
|