diff --git a/README.md b/README.md index 087d100..5bb4106 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,10 @@ - 通过配置文件 `src/config.ts` 自定义博客 - 执行 pnpm newpost '文章标题' 创建新文章,并在 src/content/posts/ 目录中编辑 - 参考官方指南将博客部署至 Vercel, Netlify,Cloudflare Pages, GitHub Pages 等 -- 部署前需编辑 `astro.config.mjs` 中的站点设置。 + +### ⚠️ Hexo 迁移 Astro 方法 + +> `Hexo` 的部署、使用、自动化部署等方法 完全适用于 `Astro`,只需要将 `Hexo` 博客的 `src/_posts/` 目录下的文章文件迁移至 `Astro` 目录下的 `src/content/blog/` 目录下即可,然后自定义 `src/config.ts` 配置文件去自定义博客。
此时,你已成功迁移 Hexo 博客至 Astro 博客! ### 自动部署 diff --git a/src/content/blog/Astro主题优雅的vhAstro-Theme.md b/src/content/blog/Astro主题优雅的vhAstro-Theme.md index a3f9a20..745aa31 100644 --- a/src/content/blog/Astro主题优雅的vhAstro-Theme.md +++ b/src/content/blog/Astro主题优雅的vhAstro-Theme.md @@ -76,6 +76,10 @@ top: true - 参考官方指南将博客部署至 Vercel, Netlify,Cloudflare Pages, GitHub Pages 等 - 部署前需编辑 `astro.config.mjs` 中的站点设置。 +### ⚠️ Hexo 迁移 Astro 方法 + +> `Hexo` 的部署、使用、自动化部署等方法 完全适用于 `Astro`,只需要将 `Hexo` 博客的 `src/_posts/` 目录下的文章文件迁移至 `Astro` 目录下的 `src/content/blog/` 目录下即可,然后自定义 `src/config.ts` 配置文件去自定义博客。
此时,你已成功迁移 Hexo 博客至 Astro 博客! + ## 📄 文章格式