首先安装butterfly主题
在你的根目录下执行
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
应用butterfly主题
找到你hexo的_config.yml文件,更改配置
theme: butterfly
可能出现的问题(安装插件)
如果你沒有 pug 以及 stylus 的渲染器,请下载安裝:
npm install hexo-renderer-pug hexo-renderer-stylus --save
butterfly导航栏的配置
默认
Home: / || fas fa-home
Archives: /archives/ || fas fa-archive
Tags: /tags/ || fas fa-tags
Categories: /categories/ || fas fa-folder-open
List||fas fa-list:
Music: /music/ || fas fa-music
Movie: /movies/ || fas fa-video
Link: /link/ || fas fa-link
About: /about/ || fas fa-heart
生成新的页面
默认安装完成后的butterfly缺少的许多页面,可以根据自己的需要生成
举个例子,假如我要生成Tags页面
hexo new page tags
注意新页面的配置
增加一个类型
type: tags