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

推荐订阅源

J
Java Code Geeks
腾讯CDC
Jina AI
Jina AI
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
小众软件
小众软件
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
月光博客
月光博客
L
LangChain Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
C
Check Point Blog
U
Unit 42
人人都是产品经理
人人都是产品经理

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