hexo
hexo教程
1. 安装node
https://nodejs.org/zh-cn/
$ node -v
v14.17.0
$ npm -v
6.14.13
2. 全局安装脚手架
npm install -g hexo-cli
3. 安装依赖包
npm install hexo
4. 主题
下载主题 到themes文件内
npm i hexo-theme-butterfly
或者
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
修改_config.yml 布局配置主题文件
主题配置教程
https://www.jianshu.com/p/50a565adaf15?ivk_sa=1024320u
换主题,调整清除缓存
hexo clean
主题报错处理
https://zhuanlan.zhihu.com/p/137946156
5. 部署
配置预览部署路径
npm install hexo-deployer-git –save
_config.yml
deploy:
type: git
repository: git@github.com:wecy-chen/wecy-chen.github.io.git
branch: master
hexo d
- hexo g 编译文件
- hexo server 创建本地服务器 http://localhost:4000/
- hexo d 发布线上预览地址
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 欢迎,欢迎━(*`∀´*)ノ亻!!