Hexo 博客发布教程:从写文章到 GitHub Pages 上线
这篇文章记录一下我现在这套 Hexo 博客的发布流程。我的博客使用 Hexo 生成静态文件,再把生成结果同步到 GitHub Pages 仓库。 目录结构我本地有两个重要目录: 12C:\Project\blog\hexo\blog-sourceC:\Project\blog\chenh735.github.io 第一个目录是 Hexo 源工程,平时写文章、改主题配置都在这里进行。 第二个目录是 GitHub Pages 发布仓库,里面放的是 Hexo 生成后的静态文件。这个目录会被推送到 GitHub,然后由 GitHub Pages 展示到网上。 整体关系可以理解为: 123456789blog-source/source/_posts 写 Markdown 文章 ↓hexo generate 生成 public 静态文件 ↓把 public 同步到 chenh735.github.io ↓git push 到 GitHub ↓GitHub Pages 自动上线 准备工作我的电脑上使用 pnpm,所以执行 Hexo 命令时使用: 1pnpm.cmd exec he...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
