安知鱼主题配置
安知鱼主题配置
duo#安知鱼主题配置#
主题安装
(npm安装):
1 | npm i hexo-theme-anzhiyu |
此方法只支持 Hexo 5.0.0 以上版本 通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
应用主题
打开 Hexo 根目录下的 config.yml, 找到以下配置项,把主题改为anzhiyu
1 | # Extensions |
安装 pug 和 stylus 渲染插件
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save |
无法安装可以使用cnpm进行安装
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save --registry=http://registry.npmmirror.com |
本地启动 hexo
1 | hexo cl |



