拉取主题代码

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

配置主题应用

blog根目录下的_config.yml文件中的主题配置由landscape改为butterfly

yaml
1
theme: butterfly

blog\themes\butterfly目录下的_config.yml文件复制一份到blog根目录下,并将复制的文件改名为_config.butterfly.yml

安装插件

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

测试验证

plaintext
1
2
#本地测试
hexo clean && hexo g && hexo s

在浏览器中访问 http://localhost:4000/ ,查看Butterfly主题安装是否成功。