Hexo-NexT v8.x字数统计以及阅读时间配置

Posted on 2022-08-14 13:42  qnhnt  阅读(62)  评论(0编辑  收藏  举报  来源

Hexo-NexT v8.x字数统计以及阅读时间配置


我的Next是v8.x的,我的blog配置成功了,NexT文档,对标v8.x的

​—

1.安装


$ npm install hexo-word-counter

$ hexo clean


2.然后在站点配置文件Hexo _config.yml的文件尾部添加

symbols_count_time:

  symbols: true

  time: true

  total_symbols: true

  total_time: true

  exclude_codeblock: false

  awl: 4

  wpm: 275

  suffix: "mins."

3.然后在主题配置文件NexT _config.yml中修改

# Post wordcount display settings

# Dependencies: https://github.com/next-theme/hexo-word-counter

symbols_count_time:

  separated_meta: true

  item_text_total: false

将设置item_text_total为true