使用 Hexo 部署静态博客
- Published on
- Authors
- Name
- Wxm
前言
最近购买下载了 IA writer,确实是一个十分干净的 md 编辑器,能激发自己写字的欲望。于是考虑重新开始博客部署。翻出了以前的 hexo 博客(大概 18 年部署的一直没更新,并且原来的设置文件都丢失了),整理一下重新部署。
安装 hexo 和 cactus 主题
hexo 安装
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server #启动服务
cactus 主题安装
cd blog
git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus
配置文件参考
使用方法
hexo new 文件名 hexo clean 或 hexo c 清除缓存 hexo generate 或 hexo g 生成静态文件 hexo server 或 hexo s 本地查看 hexo deploy 或 hexo d 上传