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

推荐订阅源

月光博客
月光博客
云风的 BLOG
云风的 BLOG
小众软件
小众软件
雷峰网
雷峰网
博客园 - 【当耐特】
V
V2EX
WordPress大学
WordPress大学
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
The Cloudflare Blog
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Butterfly

Alternative Methods After Butterfly Removes Built-in APlayer / Meting Butterfly 5.6 Release Notes Butterfly 5.5 Release Notes Butterfly 5.4 Release Notes Butterfly 5.3 Release Notes Butterfly 5.2 Release Notes Butterfly 5.1 Release Notes Butterfly 5.0 Release Notes Butterfly 4.13 Release Notes Butterfly 4.12 Release Notes Butterfly 4.11 Release Notes Butterfly 4.10 Release Notes Butterfly Changelog Butterfly document - Advanced Tutorial Butterfly document - Q&A Butterfly document - Tag Plugins Butterfly document - Theme Configuration Butterfly document - Theme Pages Custom Sidebar When Setting top_img to false Customize code coloring no cover Tag Plugins Markdown Style test
Butterfly document - Get Started
Jerry · 2023-06-30 · via Butterfly

This article is translated from ChatGPT.


hexo-theme-butterfly is a theme developed based on hexo-theme-melody.

Installation

If you are in mainland China and have difficulty accessing GitHub

Stable Version [Recommended]

In your Hexo root directory:

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

Dev version

The dev version may have bugs; if you prefer stability, please install the stable version.

If you want to install the latest dev branch, you can:

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

Upgrade method: In the theme directory, run git pull

Stable Version [Recommended]

In your Hexo root directory:

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

Dev Version

The dev version may have bugs; if you prefer stability, please install the stable version.

If you want to install the latest dev branch, you can:

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

Upgrade method: In the theme directory, run git pull

This method only supports Hexo version 5.0.0 and above.

Installing via npm will not create a theme folder in themes but will create one in node_modules.

In your Hexo root directory:

1
npm install hexo-theme-butterfly

Upgrade method: In the Hexo root directory, run npm update hexo-theme-butterfly

Apply the Theme

Modify the _config.yml in your Hexo root directory to set the theme to butterfly:

1
theme: butterfly

Install Plugins

If you do not have the pug and stylus renderers, please download and install them:

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

Upgrade Suggestions

After upgrading, please visit the Releases page on GitHub to check the update details of the new version.

If there are changes to the _config file, please update your configuration accordingly.

To minimize the inconvenience caused by theme upgrades, please use the following method (recommended but optional).

Create a file named _config.butterfly.yml in the root directory of hexo, and copy the contents of the theme's _config.yml to _config.butterfly.yml.

Note: Copy the _config.yml from the theme, not the _config.yml from hexo.

Note: Do not delete the _config.yml in the theme directory.

Note: From now on, configure in _config.butterfly.yml only.
If you use _config.butterfly.yml, the configurations in the theme's _config.yml will not be effective.

Hexo will automatically merge the configurations from the theme's _config.yml and _config.butterfly.yml. If there are duplicate configurations, the ones in _config.butterfly.yml will take precedence.

butterfly-docs-install-suggestion-1.png

📑 Butterfly document - Theme Pages

Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.

Buy Me a Coffee

  • Wechat

    Wechat

  • Alipay

    Alipay

  • Stripe

    Stripe

avatar

Jerry

A Simple and Card UI Design theme for Hexo

GitHub