hexo文章字数统计阅读时长

实现效果图

  • 具体实现方法

在根目录下安装 hexo-wordcount

npm install hexo-wordcount --save

然后在主题的配置文件中,配置如下:

1
2
3
4
5
6
# Post wordcount display settings
# Dependencies: https://github.com/willin/hexo-wordcount
post_wordcount:
item_text: true
wordcount: true
min2read: true