Hexo博客之更换电脑后快速配置
- 备份原电脑中如下文件
1 | scaffolds/ #模板文件 |
新电脑上安装Git与Node.js
安装hexo
输入命令
npm install hexo-cli -g
初始化hexo
hexok init
安装依赖包
npm install
更换主题
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
安装插件
1 | 1.搜索插件 |
用备份文件替换对应文件
输入命令
hexo s
,测试是否正常若网页提示缺少 pug&stylus 渲染器,请安装。
渲染器安装:
npm install hexo-renderer-pug hexo-renderer-stylus
生成SSH,添加到Github
1 | 1.设置Github用户名与电子邮箱地址 |
部署至Github
hexo g -d
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 JILU!