依赖安装

进入项目根目录

  1. 安装主题文件
    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
  2. 安装 pug 以及 stylus 的渲染器
    1
    npm install hexo-renderer-pug hexo-renderer-stylus --save
  3. 配置hexo主题为butterfly
    修改 Hexo 根目录下的 _config.yml,把主题改為 butterfly
    在 hexo 的根目录创建一个文件 _config.butterfly.yml,并把主题目录的 _config.yml 內容复制到 _config.butterfly.yml 去。( 注意: 复制的是主题的 _config.yml ,而不是 hexo 的 _config.yml)