Hexo添加字数统计、阅读时长

  1. 打开hexo目录,运行git bush,安装插件
1
$ npm install hexo-symbols-count-time --save
  1. 修改博客网站配置文件,添加以下代码
1
2
3
4
5
symbols_count_time:
symbols: true
time: true
total_symbols: true
total_time: true
  1. 修改主题配置文件,搜索symbols_count_time,快速定位,修改成以下代码
1
2
3
4
5
6
symbols_count_time:
separated_meta: true
item_text_post: true
item_text_total: false
awl: 4
wpm: 275
  1. 重启服务
1
2
3
hexo clean
hexo g
hexo s
------------------------ The End ------------------------
0%