hexo主题
目录
[IOT]
正文
butterfly主题
安装
- 安装
安装有两种方式,个人觉得使用克隆方式加载到主题文件夹themes比较直观git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
npm i hexo-theme-butterfly
- 修改_config.yml
修改themes: butterfly - 打包启动
注意:安装好之后启动可能会报错extends includes/layout.pug block content include ./includes/mixins/post-ui.pug #recent-posts.recent-posts +postUI include includes/pagination.pug
需要安装依赖npm install hexo-renderer-pug hexo-renderer-stylus --save
主题配置
在 hexo 的根目錄創建一個文件 _config.butterfly.yml
,並把主題目錄的themes/butterfly/_config.yml
內容複製到 _config.butterfly.yml
去。
Hexo會自動合併主題中的 _config.yml 和 _config.butterfly.yml 裏的配置,如果存在同名配置,會使用 _config.butterfly.yml 的配置,其優先度較高。
具体配置见官网配置
ayer 主题
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 KewenBlogs!
评论