|
|
|
# hexo-theme-butterfly
|
|
|
|
|
|
|
|
![version](https://img.shields.io/github/package-json/v/jerryc127/hexo-theme-butterfly)
|
|
|
|
![https://img.shields.io/npm/v/hexo-theme-butterfly?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-butterfly?color=%09%23bf00ff)
|
|
|
|
![hexo version](https://img.shields.io/badge/hexo-4.0+-0e83c)
|
|
|
|
![npm download](https://img.shields.io/npm/dw/hexo-theme-butterfly?color=green)
|
|
|
|
![nodejs version](https://img.shields.io/badge/node.js-8.0+-yellow)
|
|
|
|
![license](https://img.shields.io/github/license/jerryc127/hexo-theme-butterfly?color=FF5531)
|
|
|
|
|
|
|
|
Demo: 👍 [Butterfly](https://demo.jerryc.me/) || 🤞 [JerryC](https://jerryc.me/)
|
|
|
|
|
|
|
|
Docs: 📖 [Butterfly Docs](https://demo.jerryc.me/posts/21cfbf15/)
|
|
|
|
|
|
|
|
Based on [hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody) theme.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
### GIT
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
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
|
|
|
|
|
|
|
|
## Screenshots
|
|
|
|
|
|
|
|
![image](https://user-images.githubusercontent.com/16351105/58887365-1272f780-8718-11e9-9329-3292c6ba20d4.png)
|
|
|
|
|
|
|
|
![](https://user-images.githubusercontent.com/16351105/58887457-3cc4b500-8718-11e9-9417-2bdea603c92e.png)
|
|
|
|
|
|
|
|
![](https://user-images.githubusercontent.com/16351105/69338594-7d03f980-0c9e-11ea-8b64-7f165e6508e2.png)
|