Skip to content

feat: SEO for Home & Search page#288

Closed
Yumi0606 wants to merge 8 commits intomainfrom
feat/app-mobile
Closed

feat: SEO for Home & Search page#288
Yumi0606 wants to merge 8 commits intomainfrom
feat/app-mobile

Conversation

@Yumi0606
Copy link
Collaborator

@Yumi0606 Yumi0606 commented Feb 6, 2026

Upload the Baidu SEO inclusion verification file and complete the files required for website SEO. Provide a mobile routing framework without involving specific page modifications.

 - 创建了robots.ts
 - 扩展了根layout.tsx :添加了keywords、viewport、themeColor等SEO相关meta标签
- 添加了Open Graph元数据 :支持社交媒体分享,包括标题、描述、图片等
- 添加了Twitter Card元数据 :优化Twitter分享效果
- 添加了Schema.org标记
- 首页:基于语言环境动态生成标题和描述
- 搜索页面:基于搜索参数动态生成标题和描述
- 博客页面:基于内容动态生成标题和描述
添加generateImageAlt函数生成更详细的图片描述文本
将viewport和themeColor从metadata移至独立配置
添加设备检测工具函数和中间件逻辑,支持自动重定向移动设备到专属页面
创建移动端搜索页面示例,优化移动端用户体验
@Yumi0606 Yumi0606 requested a review from wiperi as a code owner February 6, 2026 13:51
@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
qrent-frontend Ready Ready Preview, Comment Feb 6, 2026 2:19pm

Copy link
Owner

@wiperi wiperi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented

@@ -0,0 +1,140 @@
# QRent SEO配置优化计划
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure we use the English across the repo.

@@ -0,0 +1,40 @@
# 移动端专属页面路由方案
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure we use the English across the repo.

@@ -52,5 +52,5 @@ bcrypt 6.0.0
使用 lucide-react 和react-icons图标库,不要使用path硬编码图标。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure we use the English across the repo.

localePrefix: 'always',
});

export default function middleware(request: NextRequest) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should separate these logic (frontend routing) into isolated PR. Preventing different logic mix in the one PR.

@Yumi0606
Copy link
Collaborator Author

Ready to close this PR and move commits/updates to #290.

@Yumi0606 Yumi0606 closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants