💻安装
在博客根目录里安装最新版【推荐】
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文件夹,然后重新执行安装命令即可。
此方法只支持 Hexo 5.0.0 以上版本 通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
npm i hexo-theme-anzhiyu升级方法:在 Hexo 根目录下,运行
npm update hexo-theme-anzhiyu什么?你还是不会?这里有视频 AnZhiYu 主题安装教程
🛳 应用主题
修改 hexo 配置文件_config.yml,把主题改为anzhiyu
theme: anzhiyu安装 pug 和 stylus 渲染插件
npm install hexo-renderer-pug hexo-renderer-stylus --save更好的配置,便于升级主题
macos/linux 在博客根目录运行
cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.ymlwindows 复制
/themes/anzhiyu/_config.yml此文件到 hexo 根目录,并重命名为_config.anzhiyu.yml
请注意_config.anzhiyu.yml中的配置优先级大于_config.yml,所以更新主题后需要比对主题文件夹中的theme/anzhiyu/_config.yml 文件内容,一般在git更新日志📔中能够查看并完成修改。
本地启动 hexo
此时就能在看到效果了。
有问题?
可到仓库提交 issues
群聊
群号:464636182

技术支持
联系 QQ2268025923或群聊464636182内咨询
主题设计
最后更新于