anzhiyu 主题配置
主题安装
(npm安装):
1 | npm i hexo-theme-anzhiyu |
通过 npm 安装会在
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 |
顶部图
如果不要显示顶部图,可直接配置 disable_top_img: true
顶部图的获取顺序,如果都没有配置,则不显示顶部图
字数统计
1 | npm install hexo-wordcount --save or yarn add hexo-wordcount |
修改 主题配置文件:
1 | wordcount: |