All Projects → theme-next → Hexo Symbols Count Time

theme-next / Hexo Symbols Count Time

Licence: lgpl-3.0
Symbols count and time to read of articles for Hexo.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hexo Symbols Count Time

Hexo Theme Hueman
A redesign of Alx's wordpress theme Hueman, ported to Hexo.
Stars: ✭ 1,119 (+1103.23%)
Mutual labels:  hexo
Hexo Theme Paperbox
A responsive paper-like theme for hexo blog.
Stars: ✭ 76 (-18.28%)
Mutual labels:  hexo
Hexo Theme Webstack
A hexo theme based on webstack. | 一个基于webstack的hexo主题。
Stars: ✭ 86 (-7.53%)
Mutual labels:  hexo
Farbox Next
A hexo theme NexT for Farbox.
Stars: ✭ 66 (-29.03%)
Mutual labels:  hexo
Hexoplusplus
🎁基于CloudFlareWorker的无服务器Hexo后端,目标:解决静态博客所有痛点[文章编辑、图片上传、博主活跃信息统计、博主说说、Twikoo加强版、阅读量统计【尚未完成】]
Stars: ✭ 72 (-22.58%)
Mutual labels:  hexo
Hexo.el
Use Hexo in Emacs elegantly
Stars: ✭ 78 (-16.13%)
Mutual labels:  hexo
Hexo Util
Utilities for Hexo.
Stars: ✭ 58 (-37.63%)
Mutual labels:  hexo
Laraduoshuo
Laravel 5 实现的私有评论系统,用于 Hexo、Jekyll 等静态博客系统
Stars: ✭ 92 (-1.08%)
Mutual labels:  hexo
Hexo Server
Server module for Hexo.
Stars: ✭ 75 (-19.35%)
Mutual labels:  hexo
Hexo Album
add album&photos with Hexo blog
Stars: ✭ 85 (-8.6%)
Mutual labels:  hexo
Hexo Theme Aloha
A hexo theme, use semantic ui.
Stars: ✭ 68 (-26.88%)
Mutual labels:  hexo
Hexo Filter Github Emojis
github emojis for hexo! 🎉
Stars: ✭ 71 (-23.66%)
Mutual labels:  hexo
Hexo Theme Even
🚀 A super concise theme for Hexo
Stars: ✭ 1,244 (+1237.63%)
Mutual labels:  hexo
Hexo Theme Argon
Argon-Theme 的 Hexo 移植版
Stars: ✭ 64 (-31.18%)
Mutual labels:  hexo
Hexo Theme Believe
A simple theme for hexo Sample:
Stars: ✭ 86 (-7.53%)
Mutual labels:  hexo
Font
用于个人博客所用的中文字体
Stars: ✭ 61 (-34.41%)
Mutual labels:  hexo
Meilidu Hexo
MeiliDu, beatuiful reading theme for Hexo.
Stars: ✭ 78 (-16.13%)
Mutual labels:  hexo
Hexo Hide Posts
A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)
Stars: ✭ 93 (+0%)
Mutual labels:  hexo
Hexo Theme Melody
🎹A simple & beautiful & fast theme for Hexo.
Stars: ✭ 1,306 (+1304.3%)
Mutual labels:  hexo
Hexo Client
Hexo 博客系统客户端
Stars: ✭ 82 (-11.83%)
Mutual labels:  hexo

hexo-symbols-count-time

npm-image node-image hexo-image cover-image travis-image appveyor-image lic-image

Symbols count and time to read for articles in Hexo blog.

Better than hexo-reading-time and faster than hexo-wordcount. No external dependencies.

Installation

size-image dm-image dt-image

$ npm install hexo-symbols-count-time

Usage

You can set options of hexo-symbols-count-time in the Hexo's _config.yml (which locates in the root dir of your blog):

symbols_count_time:
  symbols: true
  time: true
  total_symbols: true
  total_time: true
  exclude_codeblock: false
  awl: 4
  wpm: 275
  suffix: "mins."

If symbols_count_time option is not specified, the default parameters will be used.

Parameters

  • awl – Average Word Length (chars count in word). Default: 4. You can check this here.
    • CN ≈ 2
    • EN ≈ 5
    • RU ≈ 6
  • wpm – Words Per Minute. Default: 275. You can check this here.
    • Slow ≈ 200
    • Normal ≈ 275
    • Fast ≈ 350
  • suffix – If time to read less then 60 minutes, added suffix as string parameter.
    If not defined, mins. will be used as default.
  • exclude_codeblock – Allow to exclude all content inside code blocks for more accurate words counting.
    If not defined, false will be used as default.

Note for Chinese users: because in Chinese language average word length about ~1.5 and if you at most cases write posts in Chinese (without mixed English), recommended to set awl to 2 and wpm to 300.
But if you usualy mix your posts with English, awl to 4 and wpm to 275 will be nice.

NexT theme

This plugin integrated in «NexT» and after plugin enabled in main Hexo config, you may adjust options in NexT config:

symbols_count_time:
  separated_meta: true
  item_text_post: true
  item_text_total: false

Development

$ cd hexo
$ git clone https://github.com/theme-next/hexo-symbols-count-time.git node_modules/hexo-symbols-count-time
$ cd node_modules/hexo-symbols-count-time

Tests

$ npm install mocha chai --save-dev
$ npm test

Tests with coverage

$ npm install -g nyc
$ nyc --print both node_modules/.bin/_mocha -- test/index.js

Templates

Symbols Count

{{ symbolsCount(post) }}

Symbols Time

{{ symbolsTime(post) }}

Or with predefined parameters:

{{ symbolsTime(post, awl, wpm, suffix) }}

Symbols Count Total

{{ symbolsCountTotal(site) }}

Symbols Time Total

{{ symbolsTimeTotal(site) }}

Or with predefined parameters:

{{ symbolsTimeTotal(site, awl, wpm, suffix) }}

Renderers syntax

SWIG / Nunjucks: {{ template }}
EJS: <%- template %>
Jade: span= template

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].