mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-06-05 21:01:46 +08:00
0d0001c8085ce792ed65d309ce63e6c1e5bd8792
feat: 優化 aside_archives ,改進性能和可讀性 feat: 改善 inlineImg 和 timeline 標籤的文檔,優化時間線邏輯 feat: 更新 gallery 標籤以支持額外參數,優化圖片顯示邏輯 improvement: 優化隨機封面過濾器邏輯, 避免連續重複 feat: 最新評論限制顯示 1-10 條之間 fix: artalk 的最新評論顯示待定或者封禁的評論的 bug
0d0001c808
·
2024-12-10 20:35:58 +08:00
474 Commits
💻 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
- Rounded Design/Squared Design
- Support sub-menu
- Two-column layout
- Responsive Web Design
- Dark Mode
- Pjax
- Read Mode
- Conversion between Traditional and Simplified Chinese
- TOC catalog is available for both computers and mobile phones
- Built-in Syntax Highlighting Themes (darker/pale night/light/ocean), also support customization
- 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 Search/Local Search)
- Mathjax and Katex
- Built-in 404 page
- WordCount
- Related articles
- Displays outdated notice for a post
- Share (Sharejs/Addtoany)
- Comment (Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
- Multiple Comment System Support
- Online Chats (Chatra/Tidio/Crisp)
- Web analytics
- Google AdSense
- Webmaster Verification
- 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/pace.js
- Busuanzi visitor counter
- Medium Zoom/Fancybox
- Mermaid
- Chart.js
- Justified Gallery
- Lazyload images
- Instantpage/Snackbar notification toast/PWA......
✨ Contributors
📷 Screenshots
Description
Languages
JavaScript
40.4%
Stylus
37.5%
Pug
22.1%




