主题安装

  • 安知鱼主题为例
1
git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu

配置config.yml

1
2
3
4
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: anzhiyu

安装 pug 和 stylus 渲染插件

1
npm install hexo-renderer-pug hexo-renderer-stylus --save

覆盖配置

1
cp -rf ./themes/anzhiyu/_config.yml ./_config.anzhiyu.yml

配置主题