xshalan / hexo-wordcount-arabic

A Word Count Plugin for Hexo

Home Page:https://npmjs.org/package/hexo-wordcount

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hexo-WordCount-Arabic

Installation

yarn add hexo-wordcount
# or
npm i --save hexo-wordcount

Usage

WordCount

wordcount(post.content)

Min2Read

min2read(post.content)

Set Reading Speed:

min2read(post.content, {cn: 300,ar:200, en: 160})
// p.s. (v3.0.0 added)

TotalCount

totalcount(site)

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) }}</span>

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

About

A Word Count Plugin for Hexo

https://npmjs.org/package/hexo-wordcount


Languages

Language:JavaScript 100.0%