yarn add hexo-wordcount-sy
# or
npm i --save hexo-wordcount-sy
wordcount(post.content)
min2read(post.content) // 单位:分钟
设置阅读速度 Set Reading Speed:
min2read(post.content, {cn: 300, en: 160})
totalcount(site) // 12345
totalcount(site, 'k') // 12.3k
totalcount(site, ',') // 12,345
totalread(site) // 单位:分钟
totalread(site, 'h') // 单位:小时
设置阅读速度 Set Reading Speed:
totalread(site, '', {cn: 300, en: 160}) // 单位:分钟
totalread(site, 'h', {cn: 300, en: 160}) // 单位:小时
Post Count:
<span class="post-count">{{ wordcount(post.content) }}</span>
Post Minutes to Read:
<span class="post-count">{{ min2read(post.content) }}</span>
Total Count:
<span class="post-count">{{ totalcount(site) }}</span>
Post Count:
<span class="post-count"><%= wordcount(post.content) %></span>
Post Minutes to Read:
<span class="post-count"><%= min2read(post.content) %></span>
Total Count:
<span class="post-count"><%= totalcount(site) %></span>
Post Count:
span.post-count= wordcount(post.content)
Post Minutes to Read:
span.post-count= min2read(post.content)
Total Count:
span.post-count= totalcount(site)
MIT