Butterfly主题官方文档

安装

在项目根目录

1
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

应用主题

修改根目录下的_config.yml,把主题改为butterfly

1
theme: butterfly

安裝插件

如果你沒有 pug 以及 stylus 的渲染器,请下载安装:

1
npm install hexo-renderer-pug hexo-renderer-stylus --save

升级

  • 升级办法:
    在hexo根目录下,执行git pull

  • 升级建议:
    升级完成后,到 Github 的 Releases 界面 查看新版的更新內容。

  • 为减少升级带来的影响,建议使用以下方法:
    在 hexo 的根目录创建 _config.butterfly.yml,并把主题目录下的 _config.yml 内容 _config.butterfly.yml 去。( 注意: 复制的是主题下的 _config.yml ,而不是 hexo 的 _config.yml)