Post Word Count Plugin of Hexo.
npm install hexo-wordcount-arabicbash
yarn add hexo-wordcount
or
npm i --save hexo-wordcount
`
Usage
$3
`js
wordcount(post.content)
`
$3
`js
min2read(post.content)
`
Set Reading Speed:
`js
min2read(post.content, {cn: 300,ar:200, en: 160})
// p.s. (v3.0.0 added)
`
$3
`js
totalcount(site)
`
Demo
$3
Post Count:
`swig
{{ wordcount(post.content) }}
`
Post Minutes to Read:
`swig
{{ min2read(post.content) }}
`
Total Count:
`swig
{{ totalcount(site) }}
`
$3
Post Count:
`ejs
<%= wordcount(post.content) %>
`
Post Minutes to Read:
`ejs
<%= min2read(post.content) %>
`
Total Count:
`ejs
<%= totalcount(site) %>
`
$3
Post Count:
`jade
span.post-count= wordcount(post.content)
`
Post Minutes to Read:
`jade
span.post-count= min2read(post.content)
`
Total Count:
`swig
span.post-count= totalcount(site)
``