💻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文件夹,然后重新执行安装命令即可。
This method only supports Hexo 5.0.0 and above Installation through npm does not generate the theme folder in themes, but in node_modules
npm i hexo-theme-anzhiyuUpgrade method: in the Hexo root directory, run
npm update hexo-theme-anzhiyuWhat? 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: anzhiyuInstall the pug and stylus rendering plug-in
npm install hexo-renderer-pug hexo-renderer-stylus --saveBetter configuration for easy upgrade theme
Macos/linux runs in the root directory of the blog
cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.ymlwindows replication
/themes/anzhiyu/_config.ymlThis file goes to the hexo root directory and is renamed_config.anzhiyu.yml
Please note_config.anzhiyu.ymlThe 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
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 QQ2268025923or group chat464636182Internal consultation
Theme Design
Last updated