From ffebcb1099d019c8078ada6da9d421c637908253 Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Mon, 7 Apr 2025 12:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=96=87=E6=A1=A3=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- src/content/blog/Astro主题优雅的vhAstro-Theme.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 博客! + ## 📄 文章格式