💻Installation
在博客根目录里安装最新版【推荐】
git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
如果想要安装比较新的 dev 分支,可以
git clone -b dev https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
升级方法:
利用git更新: 在主题目录下,运行 git pull
,比对升级后的配置文件_config.yml
或全量更新:删除theme/anzhiyu文件夹,然后重新执行安装命令即可。
What? You still won't? There's video here AnZhiYu 主题安装教程
🛳 Apply Themes
Modify the hexo configuration file _config.yml
and change the theme to anzhiyu
theme: anzhiyu
Install the pug and stylus rendering plug-in
npm install hexo-renderer-pug hexo-renderer-stylus --save
Better configuration for easy upgrade theme
Macos/linux runs in the root directory of the blog
cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.yml
windows replication
/themes/anzhiyu/_config.yml
This file goes to the hexo root directory and is renamed_config.anzhiyu.yml
Please note_config.anzhiyu.yml
The configuration priority in is greater_config.yml
,Therefore, after updating the theme, you need to comparetheme/anzhiyu/_config.yml
File content, generally in the git update logto be able to view and complete the changes.
Start hexo locally
hexo cl
hexo g
hexo s
You can see the effect now.
Is there a problem?
Can be submitted to the warehouse issues
Group Chat
QQ Group number:464636182

Technical Support
Contact QQ2268025923
or group chat464636182
Internal consultation
Theme Design
Last updated