Skip to content

站点文案集中 site.config.yaml + 照片墙改配置驱动 + CLAUDE.md 只留引用 - #30

Merged
CoderJackZhu merged 1 commit into
mainfrom
migration/astro
Sep 3, 2026
Merged

CoderJackZhu merged 1 commit into
mainfrom
migration/astro

Conversation

@CoderJackZhu

Copy link
Copy Markdown
Owner

改动

  • 站点可改文案全部集中到 site.config.yaml:新增 nav / categories / footerLinks / footer.author / footer.cdnNote / pages(各页标题/eyebrow/副标题)区块,src/lib/site-config.ts 同步接口。
  • 照片墙 /photos/ 从「自动收集文章封面」改为配置驱动的 photos: 列表手动管理,现有 44 张封面已 seed。
  • 首页「查看全部 N 篇文章」的 N 改为动态取文章总数(不再写死 54)。
  • content.config.ts 的 section 枚举与 consts.ts 分类改由配置 categories 驱动。
  • AGENTS.md 改为自包含迁移说明;CLAUDE.md 只留 @AGENTS.md 引用;删除 .agent/PROJECT_BRIEF.md、docs/CONTENT_MAP.md。

验证

  • npm run build:66 页,exit 0
  • npm run test:10/10 PASS
  • 照片页 44 图、导航/页脚/各页文案均从配置正确渲染

Copilot AI lite review requested due to automatic review settings September 3, 2026 19:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CoderJackZhu
CoderJackZhu merged commit 99682cb into main Sep 3, 2026
1 check 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.

2 participants