此目录包含各种营销落地页。
/landing/ai-girlfriend
ai-girlfriend.astro
, AIGirlfriendPage.jsx
创建组件文件:在此目录创建新的 .jsx
组件文件(如 AIBoyfriendPage.jsx
)
创建英文路由:在此目录创建对应的 .astro
文件作为英文路由入口(如 ai-boyfriend.astro
)
配置落地页:在 src/config/landingPages.js
中添加配置:
'ai-boyfriend': {
slug: 'landing/ai-boyfriend',
component: 'AIBoyfriendPage',
tdk: {
titleKey: 'pages.aiBoyfriend.title',
descriptionKey: 'pages.aiBoyfriend.description',
keywordsKey: 'pages.aiBoyfriend.keywords'
}
}
添加多语言内容:在 src/locales/*.js
的 pages
部分添加相应的 TDK 和 landing
部分添加页面文案
更新文档:更新此 README
注意:多语言路由会自动生成,无需手动配置!