目录

[IOT]

正文

butterfly主题

butterfly

主题官方地址

安装

  1. 安装
    安装有两种方式,个人觉得使用克隆方式加载到主题文件夹themes比较直观
    • git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
    • npm i hexo-theme-butterfly
  2. 修改_config.yml
    修改themes: butterfly
  3. 打包启动

注意:安装好之后启动可能会报错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 主题

ayer
主题官方地址