1. 安装
1 | npm install hexo-cli -g |
2. 创建网站
1 | hexo init <项目名> |
3. 本地预览
1 | hexo server |
4. 部署
1. 添加配置
1 | deploy: |
注: 服务器需提前创建所指定的 root 文件夹
2. Hexo 生成&部署
1 | hexo generate |
3. 运行 Nginx
4. 创建文章
1 | hexo new <文章名> |
另. 更换主题 [可选]
方式一
1 | npm install hexo-theme-cactus |
方式二
1 | git submodule add git@github.com:probberechts/hexo-theme-cactus.git themes/cactus |