AnZhiYu主题快速开始

AI-摘要
Tianli GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
本教程更新于 2023 年 4 月 24 日,教程的内容针对最新的 anzhiyu 主题(如果你是旧版本,教程会有出入,请留意)
🐟 安知鱼 已经更新到 1.1.8
hexo-theme-anzhiyu 是基于 hexo-theme-butterfly 的基础上进行开发的。
💻 安裝
在博客根目录里安装最新版【推荐】
1 | git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu |
测试版
测试版可能存在 bug,追求稳定的请安装稳定版
如果想要安装比较新的 dev 分支,可以
1 | git clone -b dev https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu |
升级方法:在主题目录下,运行
git pull
此方法只支持 Hexo 5.0.0 以上版本
通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
1 | npm i hexo-theme-anzhiyu |
升级方法:在 Hexo 根目录下,运行 npm update hexo-theme-anzhiyu
什么?你还是不会?这里有视频 AnZhiYu主题安装教程
⚙ 应用主题
修改 hexo 配置文件_config.yml
,把主题改为anzhiyu
1 | theme: anzhiyu |
安装 pug 和 stylus 渲染插件
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save |
更好的配置,便于升级主题
macos/linux
在博客根目录运行1
cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.yml
windows
复制/themes/anzhiyu/_config.yml
此文件到 hexo 根目录,并重命名为_config.anzhiyu.yml
_config.anzhiyu.yml
中的配置优先级大于_config.yml
本地启动 hexo
1 | hexo cl |
此时就能在看到效果了。
有问题?
可到仓库提交 isses
群聊
群号:464636182
技术支持
联系 QQ2268025923
或群聊内咨询
主题设计
AnZhiYu主题安装文档(一) 评论
匿名评论
✅ 你无需删除空行,直接评论以获取最佳展示效果