hexo主题美化
依赖安装
进入项目根目录
- 安装主题文件或
1
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
或1
git clone -b master https://gitee.com/immyw/hexo-theme-butterfly.git themes/butterfly
1
npm install hexo-theme-butterfly
- 安装 pug 以及 stylus 的渲染器
1
npm install hexo-renderer-pug hexo-renderer-stylus --save
- 配置hexo主题为butterfly
修改 Hexo 根目录下的_config.yml,把主题改為butterfly
在 hexo 的根目录创建一个文件_config.butterfly.yml,并把主题目录的_config.yml內容复制到_config.butterfly.yml去。( 注意: 复制的是主题的_config.yml,而不是 hexo 的_config.yml)
评论