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

推荐订阅源

V2EX - 技术
V2EX - 技术
P
Privacy International News Feed
Security Latest
Security Latest
H
Hacker News: Front Page
T
Tenable Blog
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Security @ Cisco Blogs
Project Zero
Project Zero
O
OpenAI News
AI
AI
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Scott Helme
Scott Helme
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
NISL@THU
NISL@THU
A
Arctic Wolf
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
N
News and Events Feed by Topic
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
L
LINUX DO - 最新话题
U
Unit 42
S
Security Affairs
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
月光博客
月光博客
Engineering at Meta
Engineering at Meta
腾讯CDC
F
Full Disclosure
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
The Cloudflare Blog

Butterfly

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