配置博客主题

hexo主题

推荐两个主题,oceanbuttferfly

安装主题

Git安装方法 ,在本地blog根目录里打开 git

git clone -b master https://gitee.com/iamjerryw/hexo-theme-butterfly.git themes/butterfly

应用主题

修改_config.yml, 把主题改成butterfly

1
them:butterfly

安装插件

安装pug以及stylus的渲染器,有则忽略。

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

主题升级

将主题文件夹themes中的_config.yml复制到hexo根目录中,同时重新命名为 _config.butterfly.yml

以后所有配置只用在_config.butterfly.yml中配置即可。

Hexo会自动合并主题中的config.ymlconfig.butterfly.yml里的配置,如果存在同名配置,会使用config.butterfly.yml的配置,其优先级较高。