Skip to main content

post

post:
# Post word count
# Dependencies: hexo-wordcount (npm install hexo-wordcount)
# See: https://github.com/willin/hexo-wordcount
word_count:
enable: false
wordcount: false # word count, one article
min2read: false # time to read, one article

# Author label
author_label:
enable: true
auto: true # if true, show Lv1, Lv2, Lv3... , If false, show custom label
# label array item can be one or more
custom_label_list: [ "Trainee", "Engineer", "Architect", "CTO", "BOSS" ]

This configuration item is used to set whether to display article word count, reading time and author identification.

##word_count

If you want to enable article word count and reading time, you need to install the dependency hexo-wordcount in the root directory of the Hexo project.

$ npm install hexo-wordcount
  • wordcount article word count
  • min2read article reading time Screen Shot 2022-10-01 at 10.30.52 PM

##author_label

To set the author ID of the article content page, there are currently two options:

  1. auto automatically generates Lv1, Lv2, Lv3..., the judgment is based on the number of articles. Screen Shot 2022-10-02 at 10.04.40 AM

  2. custom_label_list Custom label list, array items can be one or multiple, the matching is based on the number of articles. Screen Shot 2022-10-02 at 10.06.54 AM

    Format reference:

    • an array item ["The one"]
    • Multiple array items ["The one", "Neo", "God"]