@teampimcserver/hexo-reading-time

1.0.3-path1 • Public • Published

NPM Version

hexo-reading-time

Hexo plugin that displays reading time for the article.

CHANGE

  • Change to Japanese
  • Change README.md
  • Change Package.json

Installation

#npm
npm install --save @teampimcserver/hexo-reading-time

#yarn
yarn add @teampimcserver/hexo-reading-time

Usage

Basic Usage

To display reading time, add the function into post.ejs.

Ejs:

<%- readingTime(page.content) %>

Swig:

{{ readingTime(page.content) }}

Jade:

span= readingTime(page.content)

It will display X min. read.

Customization

You can customize the output by passing additional arguments.

Ejs:

<%- readingTime(page.content, 'min.', wordsperminute) %>

Swig:

{{ readingTime(page.content, 'min.', wordsperminute) }}

Jade:

span= readingTime(page.content, 'min.', wordsperminute)

Where: 'min.' - second argument - any string that represents suffix. Default is 'min. read' wpm - number - words per minute. Default is 150. Both arguments are optional.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @teampimcserver/hexo-reading-time

Weekly Downloads

1

Version

1.0.3-path1

License

MIT

Unpacked Size

34.7 kB

Total Files

26

Last publish

Collaborators

  • sousuke0422
  • yupix