hexo-wordcount-bengali
v1.0.0
Published
Bengali Post Word Count Plugin of Hexo.
Downloads
3
Readme
Hexo-Wordcount-Bengali
Installation
yarn add hexo-wordcount-bengali
# or
npm install --save hexo-wordcount-bengali
Usage
WordCount
wordcount(post.content)
Min2Read
min2read(post.content)
Set Reading Speed:
min2read(post.content, {cn: 300, en: 160})
TotalCount
totalcount(site, '0,0.0a')
Demo
Swig
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, '0,0.0a') }}</span>
Second param format
optional.
Ejs
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>
Jade
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)
LICENSE
MIT