mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 18:50:53 +08:00
de11040293ccd49a387d87fa5e6642ccf814d0b2
fix: 修復當hexo的_config沒有設置description時,會導致pjax在頁面與文章間切換會無效 close #381 improvement: 當隱藏部分沒配置時,左下角設置按鈕會消失 #353 improvement: 網站背景可配置 (顏色(HEX值/RGB值/顔色單詞/漸變色)/漸變色/圖片鏈接) improvement: 夜間模式下,背景顔色/top-img/footer-bg 設置為顔色時,不再強制顯示黑色,而是改為遮罩降低亮度
de11040293
·
2020-09-28 21:55:47 +08:00
152 Commits
hexo-theme-butterfly
Docs: 📖 Butterfly Docs
Based on hexo-theme-melody theme.
Installation
GIT
If you are in Mainland China, you can download in Gitee
Stable branch [recommend]:
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
Dev branch:
git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
NPM
It supports Hexo 5.0.0 or later
In Hexo site root directory
npm i hexo-theme-butterfly
Configuration
Set theme in the hexo work folder's root config file _config.yml:
theme: butterfly
If you don't have pug & stylus renderer, try this:
npm install hexo-renderer-pug hexo-renderer-stylus
Features
- Card UI Design
- Support sub-menu
- Two Column designs
- Responsive Web Design
- Dark Mode
- Pjax
- Read Mode
- Conversion between Traditional and Simplified Chinese
- TOC catalog is available for both computers and mobile phones
- Color themes (darker/pale night/light/ocean/mac/mac light), support custom colors
- Code Blocks (Display code language/close or expand Code Blocks/Copy Button/word wrap)
- Disable copy/Add a Copyright Notice to the Copied Text
- Search (Algolia SearchZ/Local Search)
- Mathjax and Katex
- Built-in 404 page
- WordCount
- Related articles
- Displays outdated notice for a post
- Share (AddThis/Sharejs/Addtoany)
- Comment (Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments)
- Multiple Comment System Support
- Online Chats (Chatra/Tidio/Daovoice/Gitter/Crisp)
- Web analytics (Baidu Analytics/Google Analytics/Tencent Analytics/CNZZ Analytics)
- Google AdSense
- Webmaster Verification (google/Bing/Baidu/360/Yandex)
- Change website colour scheme
- Typewriter Effect: activate_power_mode
- Background effects (Canvas ribbon/canvas_ribbon_piao/canvas_nest)
- Mouse click effects (Fireworks/Heart/Text)
- Preloader/Loading Animation
- Busuanzi visitor counter
- Medium Zoom/Fancybox
- Mermaid
- Justified Gallery
- Lazyload images
- Instantpage/Pangu/Snackbar notification toast/PWA......
Screenshots
Description
Languages
JavaScript
40.4%
Stylus
37.5%
Pug
22.1%


