Repository navigation
Astro 博客重构、内容迁移与离线全文搜索及 SEO/GEO 优化 - #37
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将 VuePress 文档博客迁移为 Astro 静态站点,继续使用 Markdown 发布内容,采用 Chronicle 排版、双语界面与原生自由滚动,并完成移动适配、内容去重迁移、作者简介同步及 SEO/GEO 技术优化。
变更
.html地址和标题锚点继续兼容。修复含字面%文件名的 Astro 预渲染请求,保留原文件名和文章地址。cover优先,仅首个正文段为图时兜底,无封面文章为文字卡片;首页、静态归档和本地搜索结果遵循同一规则,保留本地资源及部署路径。界面采用 PingFang SC / HarmonyOS_Regular / Helvetica Neue / Microsoft YaHei 系统字体栈,代码保留等宽字体,移除外部字体请求。.idea跟踪;GitHub Pages 已启用 Actions 发布源,main/master合入后部署,PR 执行检查、构建和产物验收。迁移审查报告 · 迁移工具
验证
pnpm check:0 errors / 0 warnings。pnpm test:55/55 通过,包含 Markdown/路径、Unicode 摘要、查询分词、真实 Pagefind 词表、离线下载原子性/配额/更新和作用域隔离。BASE_PATH=/MyBlogDoc/ SITE_URL=https://momeak9.github.io pnpm build:1,718 个页面构建成功;构建后自动生成 Pagefind 与离线资源包。pnpm test:build:12/12 通过,覆盖所有文章、分页、旧链接、静态资源、JSON-LD、可见作者/日期/面包屑、canonical/hreflang、sitemap lastmod、RSS 和内容索引。%地址。下载后断网搜索此前未搜词、筛选/结果分页/重载/英文界面/已访问文章阅读均通过,移动端无溢出,未启用 JS 时保留静态归档。合入
main后由 GitHub Pages 工作流部署。Google 的 AI 指南不要求特殊 AI 文件;llms.txt 作为可选内容导航而非排名策略。项目子路径 robots.txt 不能控制域名根路径的抓取策略,详细说明见 README。