惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
月光博客
月光博客
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
博客园 - 聂微东
V
V2EX

Butterfly

Butterfly 移除內建 APlayer / Meting 後的替代方法 Butterfly 5.6 更新日誌 香港銀行開戶推薦 (附邀請碼) Butterfly 5.5 更新日誌 Butterfly 5.4 更新日誌 Butterfly 5.3 更新日誌 Butterfly 5.2 更新日誌 Butterfly 5.1 更新日誌 Butterfly 5.0 更新日誌 Butterfly 4.13 更新日誌 Butterfly 4.12 更新日誌 Butterfly 4.11 更新日誌 Butterfly 4.10 更新日誌 自定義側邊欄 當設置 top_img 為 false 時 Butterfly添加全局吸底Aplayer教程 自定義代碼配色 Butterfly 打賞 Butterfly 更新日誌 Butterfly 文檔(六) 進階教程 Butterfly 文檔(五) 主題問答 Butterfly 文檔(四) 標簽外挂 Butterfly 文檔(三) 主題配置 Butterfly 文檔(二) 主題頁面 沒有封面 標籤外掛(Tag Plugins) Markdown Style test
Butterfly 文檔(一) 快速開始
Jerry · 2020-05-28 · via Butterfly

hexo-theme-butterfly 是基於 hexo-theme-melody 的基礎上進行開發的主题。

安裝

如果你身處中國大陸,且訪問 Github 不穩定,你可以用 Gitee 安裝

穩定版【建議】

在你的 Hexo 根目錄下

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

測試版

測試版可能存在 Bugs,追求穩定的請安裝穩定版

如果想要安裝比較新的 dev 分支,可以

1
git clone -b dev https://gitee.com/immyw/hexo-theme-butterfly.git themes/butterfly

升級方法:在主題目錄下,運行 git pull

穩定版【建議】

在你的 Hexo 根目錄裏

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

測試版

測試版可能存在 Bugs,追求穩定的請安裝穩定版

如果想要安裝比較新的 dev 分支,可以

1
git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

此方法只支持 Hexo 5.0.0 以上版本

通過 npm 安裝並不會在 themes 裏生成主題文件夾,而是在 node_modules 裏生成

在你的 Hexo 根目錄裏

1
npm install hexo-theme-butterfly

升級方法:在 Hexo 根目錄下,運行 npm update hexo-theme-butterfly

應用主題

修改 Hexo 根目錄下的 _config.yml,把主題改為 butterfly

1
theme: butterfly

安裝插件

如果你沒有 pug 以及 stylus 的渲染器,請下載安裝:

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

升級建議

升級完成後,請到 Github 的 Releases 界面查看新版的更新內容。

裏面有標注 _config 文件的變更內容(如有),請根據實際情況更新你的配置內容。

為了減少升級主題後帶來的不便,請使用以下方法(建議,可以不做):

在 hexo 的根目錄創建一個文件 _config.butterfly.yml,並把主題目錄的 _config.yml 內容複製到 _config.butterfly.yml 去。

注意:

複製的是主題的 _config.yml ,而不是 hexo 的 _config.yml

不要把主題目錄的 _config.yml 刪掉

以後只需要在 _config.butterfly.yml 進行配置就行。如果使用了 _config.butterfly.yml, 配置主題的 _config.yml 將不會有效果。

Hexo 會自動合併主題中的 _config.yml_config.butterfly.yml 裏的配置,如果存在同名配置,會使用 _config.butterfly.yml 的配置,其優先度較高。

butterfly-docs-install-suggestion-1.png

📑 Butterfly 文檔(二) 主題頁面

版權聲明: 除特別聲明外,本博客所有文章均採用CC BY-NC-SA 4.0 授權協議。轉載請註明出處:Butterfly

avatar

Jerry

A Simple and Card UI Design theme for Hexo

主題 GitHub