Skip to content

feat: 添加自定义404页面并优化导航逻辑#40

Merged
nowscott merged 2 commits intomainfrom
coding
Apr 3, 2026
Merged

feat: 添加自定义404页面并优化导航逻辑#40
nowscott merged 2 commits intomainfrom
coding

Conversation

@nowscott
Copy link
Copy Markdown
Owner

@nowscott nowscott commented Apr 3, 2026

  • 新增 pages/404.js 作为自定义404页面,包含完整的UI和数据获取逻辑
  • 修复 HeaderBar 导航逻辑,现在能正确识别首页和关于页面状态
  • 优化关于页面标题样式,添加 inline-block 显示模式
  • 404页面与主站共享数据获取逻辑,确保统计信息一致性

- 新增 pages/404.js 作为自定义404页面,包含完整的UI和数据获取逻辑
- 修复 HeaderBar 导航逻辑,现在能正确识别首页和关于页面状态
- 优化关于页面标题样式,添加 inline-block 显示模式
- 404页面与主站共享数据获取逻辑,确保统计信息一致性
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 3, 2026

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

Project Deployment Actions Updated (UTC)
indwebindex Ready Ready Preview, Comment Apr 3, 2026 7:52am

避免从关于页或404页跳回首页时,首页的随机排序被覆盖,
确保首页使用其自身半小时内稳定的随机排序数据。
@nowscott nowscott merged commit c8cf9d0 into main Apr 3, 2026
2 checks passed
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.

1 participant