jerryc127/hexo-theme-butterfly
jerryc127/hexo-theme-butterfly has 8,364 GitHub stars and 1,395 forks. GitHot measured -1 stars in 24 hours and -13 in 7 days. Last checked 2026-11-09 21:49 UTC. Last push 2026-11-06.
🦋 A Hexo Theme: Butterfly
What you can do
- ✅ PWA — Progressive Web App support
- ✅ Copy protection — Disable copying or append a copyright notice
- ✅ Theme customization — Custom color schemes
- ✅ Charts — Mermaid flowcharts and Chart.js charts
Measured star growth
- in 24h
- -1
- in 7 days
- -13
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalhexo-theme-butterfly
A modern, elegant, and feature-rich theme for Hexo
📢 Demo: Official Site | CrazyWong's Blog
📖 Documentation: English | 中文文檔

📑 Table of Contents
📋 Requirements
- Hexo: 5.3.0 or later
- Node.js: 18 or later (
hexo-util4.x requires it) - Git: only needed for Git installs
🚀 Quick Start
💾 Installation
Option 1: Git (Recommended)
💡 Tip: If GitHub access is slow from mainland China, use the Gitee mirror.
Run the following in your Hexo blog root:
# Stable release (recommended)
git clone -b master --depth 1 https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
# Development branch (early access to new features)
git clone -b dev --depth 1 https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
📁 If
themes/butterflyalready exists, remove or rename it first;git clonewill fail if the target folder isn't empty.
Option 2: npm
npm install hexo-theme-butterfly
⚠️ Note: npm doesn't create a folder under
themes/; the theme goes intonode_modules/instead.
⚙️ Enable & Configure
Enable the theme: set it in the
_config.ymlat your Hexo root:theme: butterflyCopy the theme config (recommended, so upgrades don't overwrite your settings):
# Git install cp themes/butterfly/_config.yml _config.butterfly.yml # npm install cp node_modules/hexo-theme-butterfly/_config.yml _config.butterfly.yml💡 Hexo 5+ automatically loads
_config.butterfly.ymlfrom the blog root. On Windows, usecopy themes\butterfly\_config.yml _config.butterfly.ymlfor Git installs, orcopy node_modules\hexo-theme-butterfly\_config.yml _config.butterfly.ymlfor npm installs.⚠️ After this, edit only
_config.butterfly.yml. Don't delete the theme's own_config.yml, and keep custom files and images out of the theme'ssource/folder — upgrades may overwrite them.Install the renderers and preview locally:
npm install hexo-renderer-pug hexo-renderer-stylus --save hexo clean && hexo s
🔄 Upgrade
Git install
cd themes/butterfly
git pull
npm install
npm update hexo-theme-butterfly
Before upgrading, back up your config. After upgrading, check Releases for _config changes and merge them into _config.butterfly.yml.
✨ Theme Features
💡 All features can be configured in
_config.butterfly.yml. See the theme configuration docs for details.
🎨 Design
- ✅ Card-based design — Modern card layout
- ✅ Rounded or square corners — Configurable corner radius
- ✅ Responsive layout — Looks great on any screen size
- ✅ Two-column layout — Optimized for reading
- ✅ Dark mode — Easy on the eyes at night
📝 Content
- ✅ Multi-level menu — Nested navigation menus
- ✅ Reading mode — Distraction-free reading
- ✅ Table of contents — Available on desktop and mobile
- ✅ Word count — Shows the word count and estimated reading time
- ✅ Related posts — Smart recommendations at the end of a post
- ✅ Outdated post warning — Alerts readers when a post may be out of date
- ✅ Traditional/Simplified Chinese — Convert between Traditional and Simplified Chinese
- ✅ Tag plugins — Extra tags for richer content
🔍 Search & Navigation
- ✅ Multiple search options — Algolia, local search, or DocSearch
- ✅ Built-in 404 page — A polished error page
- ✅ PJAX — Smooth page transitions
🎨 Code Display
- ✅ Syntax highlighting — Several built-in themes (darker, pale night, light, ocean)
- ✅ Code block tools — Language labels, folding, copy button, word wrap
- ✅ Math formulas — MathJax and KaTeX support
💬 Social Interaction
- ✅ Multiple comment systems — Disqus, Gitalk, Valine, Waline, Twikoo, Giscus, Artalk, and more
- ✅ Two comment systems at once — Use two systems side by side
- ✅ Sharing — Share.js and AddToAny
- ✅ Live chat — Chatra, Tidio, or Crisp
📊 Analytics & Statistics
- ✅ Visit counter — Busuanzi
- ✅ Site analytics — Google Analytics, Baidu Analytics, Cloudflare Analytics, Microsoft Clarity, or Umami
- ✅ Search engine verification — Google and Baidu
- ✅ Ads — Google AdSense and custom ad slots
🎪 Visual Effects
- ✅ Typing effects — activate_power_mode animations
- ✅ Background effects — Static, dynamic, or fluttering ribbons, plus Canvas Nest
- ✅ Mouse effects — Fireworks, hearts, and text on click
- ✅ Loading animations — Preloader or a pace.js progress bar
- ✅ Image lightbox — medium-zoom or Fancybox
- ✅ Lazy loading — Images load as they enter the viewport
🛠️ Advanced Features
- ✅ PWA — Progressive Web App support
- ✅ Copy protection — Disable copying or append a copyright notice
- ✅ Theme customization — Custom color schemes
- ✅ Charts — Mermaid flowcharts and Chart.js charts
- ✅ Music notation — ABCJS support
- ✅ Post series — Group posts into series
- ✅ instant.page — Preload pages for faster navigation
- ✅ Snackbar — Elegant toast notifications
🤝 Contributors
Thanks to everyone who has contributed to Butterfly!
📸 Screenshots
⭐ Star History
🤝 Building a Better Theme Together
We believe open source thrives on participation. Whether you're a developer, a designer, or a user, you can help make Butterfly better.
💬 Get Help & Support
- 🐛 Found a bug? → Open an issue and let's fix it together.
- 💡 Have an idea? → Start a discussion to share it.
- 📚 New to Butterfly? → Read the documentation.
- ❓ Stuck? → Check the FAQ for common problems and fixes.
- 📦 What's new? → See Releases for version notes and
_configchanges. - 💬 Want to chat? → Join the Telegram group.
🎯 Contributing
Want to help? Contributions of every kind are welcome:
- Code — Fix bugs, add features, improve performance
- Documentation — Improve docs, translate pages, write tutorials
- Design — UI/UX improvements, color schemes, icons
- Testing — Try new features, report issues, share feedback
- Funding — Sponsor the project to support ongoing development
📄 License
This project is licensed under the Apache 2.0 License.
🙏 Acknowledgments
This theme is based on hexo-theme-melody. Thanks to its author for the inspiration and solid foundation.
Thanks to everyone who has contributed to Butterfly — your support keeps the theme moving forward.
✨ If you find this theme useful, please give it a ⭐ star! ✨
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,398 starspublic-apis/public-apis
A collective list of free APIs
497,679 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
447,495 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,261 stars


