feat: SEO 商用化 — robots/sitemap/OG/结构化数据 + 服务清单内置
- robots.txt:禁 /virtheart /api /unlock,含 sitemap 指向 - sitemap.xml:动态生成(首页 + 服务页 + 已发布作品详情) - metadata:metadataBase/title template/keywords/canonical/OG/Twitter 卡片/apple-icon,全部后台可改(site_title/description/keywords) - search_verification 字段:百度站长验证 meta(后台填入即生效) - JSON-LD:首页 Person 实体 + 服务页 ProfessionalService/ Offer - og.png(1200×630)与 icon/apple-icon 品牌图(scripts/gen-brand-images.py) - 页脚 ICP 备案号位(icp_beian,后台填入即显示,链工信部) - 服务清单内置 7 项(Web/小程序、AI 应用、Flutter、Java/Go、 产品设计、全栈交付、技术咨询),价格一律面议,DB 种子幂等 SEO 部署侧待办:百度/搜狗/360/Bing 站长平台提交与验证(填 search_verification 或放验证文件)、NEXT_PUBLIC_SITE_URL 指向正式域名。
This commit is contained in:
+10
-2
@@ -32,6 +32,11 @@ export type SiteConfig = {
|
||||
copyright_name: string;
|
||||
services_hero: string;
|
||||
services_submit_note: string;
|
||||
/** ICP 备案号(部署国内时填,页脚展示;空则不显示) */
|
||||
icp_beian: string;
|
||||
seo_keywords: string;
|
||||
/** 搜索引擎站长验证 meta content(百度/搜狗/360/Bing 通用) */
|
||||
search_verification: string;
|
||||
};
|
||||
|
||||
export const CONFIG_KEYS = [
|
||||
@@ -61,13 +66,16 @@ export const CONFIG_KEYS = [
|
||||
"copyright_name",
|
||||
"services_hero",
|
||||
"services_submit_note",
|
||||
"icp_beian",
|
||||
"seo_keywords",
|
||||
"search_verification",
|
||||
] as const satisfies readonly (keyof SiteConfig)[];
|
||||
|
||||
/** 配置分组(后台表单渲染顺序)。 */
|
||||
export const CONFIG_GROUPS: { title: string; keys: (keyof SiteConfig)[] }[] = [
|
||||
{
|
||||
title: "基础",
|
||||
keys: ["site_title", "site_description", "brand_name", "copyright_name"],
|
||||
keys: ["site_title", "site_description", "seo_keywords", "search_verification", "brand_name", "copyright_name"],
|
||||
},
|
||||
{
|
||||
title: "首屏",
|
||||
@@ -94,7 +102,7 @@ export const CONFIG_GROUPS: { title: string; keys: (keyof SiteConfig)[] }[] = [
|
||||
},
|
||||
{
|
||||
title: "页脚",
|
||||
keys: ["footer_headline", "contact_email"],
|
||||
keys: ["footer_headline", "contact_email", "icp_beian"],
|
||||
},
|
||||
{
|
||||
title: "作品区空状态",
|
||||
|
||||
Reference in New Issue
Block a user