个人博客开发mini框架,基于node插件一大堆又怕数据丢失,就放在github上了。
- 安装
git
- 安装
nodejs
- 全局安装hexo插件
npm install hexo-cli -g
- 下载git源码到
git clone https://github.com/caojiurui/blog_dev.git 目录
cd 目录
,执行npm install
- 清空缓存
hexo clean
- 调试启动服务
hexo s --debug
- 生成静态页面
hexo g
- 推送到github
hexo d
git的配置在
_config.yml
的deploy
属性
- 假如部署到github主页上,项目名称为
<username>.github.io
- 假如需要配置域名,域名直接配置到
/source/CNAME
文件,不带协议前缀
- Hexo简介(by 墨飞_Max):https://www.cnblogs.com/mophy/p/7016331.html
- Hexo简洁主题推荐 (by 屠城9441) https://www.haomwei.com/technology/maupassant-hexo.html