Ghost/core/test/unit/utils
Aileen Nowak dbd22d7447 Feature: {{reading_time}} theme helper (#9217)
closes #9200

- Registered new server helper `{{reading_time}}`.
- Added new global util `word-count` based on the util in Ghost admin, which returns the number of words in an HTML string.
- Based on the word count of the post html, the helper calculated the estimated reading time:
   - 275 words per minute
   - additional 12 seconds when post has feature image
- Renders a string like 'x min red', unless reading time is less than a minute. In this case, the rendered string is '< 1 min read'.
2017-11-06 18:40:07 +00:00
..
blog-icon_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
cached-image-size-from-url_spec.js 🐛 Fix invalid image URLs not being cached and causing timeouts (#8986) 2017-09-12 12:53:18 +01:00
image-size_spec.js 🐛 Fix invalid image URLs not being cached and causing timeouts (#8986) 2017-09-12 12:53:18 +01:00
make-absolute-urls_spec.js 🐛 Fixed internal links converting to absolute URLs (#9143) 2017-10-18 17:54:17 +01:00
mobiledoc-converter_spec.js replace custom showdown fork with markdown-it (#8451) 2017-05-15 18:48:14 +02:00
packages_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
read-csv_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
request_spec.js Request util to wrap got library (#8980) 2017-09-07 12:17:24 +01:00
tokens_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
url_spec.js Increased URL utility coverage to 100% (#9201) 2017-11-02 20:35:58 +00:00
word-count_spec.js Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
zip-folder_spec.js Replaced extract-zip-fork by extract-zip 2017-10-31 12:11:59 +01:00