Skip to content

Butterfly主题安装 ​

拉取主题代码 ​

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

配置主题应用 ​

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

yaml
theme: butterfly

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

安装插件 ​

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

测试验证 ​

#本地测试
hexo clean && hexo g && hexo s

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