Introduction
After using Hexo's Butterfly theme for a long time, it started to feel a bit unrefined. I previously saw someone using the Anzhiyu theme, which is a modified version based on Butterfly and looks very impressive.
If you were already using the Butterfly theme, switching over is extremely simple.
Applying the Theme
You can download it easily using Git. Execute the following command in your Hexo blog's root directory:
1 | git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu |
Modify your Hexo configuration file _config.yml to change the theme to anzhiyu:
1 | theme: anzhiyu |
To make the theme take effect, copy the default configuration file to your project root directory:
1 | cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.yml |
Windows users can copy this file manually.
Now, run hexo s and visit http://localhost:4000 to view the preview.
Modifying Configurations
The theme comes with some default configurations that need adjustments. Below are the parts I modified:
1 | # Local search ,打开本地搜索,false to true |
Issues Encountered
- Compatibility issues exist with Artalk; the new version is not yet adapted.
- In narrow screen mode, there is a styling issue with the title section; enabling the main color scheme resolves this.
Comments