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
Hexo 博客部署到 GitHub Pages 操作流程
0. 前置准备0.1 创建 GitHub Pages 仓库 登录 GitHub,点击右上角 + → New repository Repository name 填写:你的用户名.github.io(如 foamshadow.github.io) 必须严格按此格式命名,GitHub 才会识别为 Pages 仓库 选择 Public(Pages 需要 public 仓库) 可勾选 Add a README file 点击 Create repository 0.2 安装 Hexo 前置依赖Hexo 依赖 Node.js 和 Git,确保已安装: 123node -vnpm -vgit --version 如未安装: Node.js:推荐使用 fnm 管理(fnm install 22) Git:winget install Git.Git 安装 Hexo CLI(可选,方便全局使用 hexo 命令): 1npm install -g hexo-cli 0.3 安装 GitHub CLI(可选,用于命令行管理仓库)1winget install GitHub.cli ...