mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 04:03:12 +03:00
dbd22d7447
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'. |
||
---|---|---|
.. | ||
blog-icon_spec.js | ||
cached-image-size-from-url_spec.js | ||
image-size_spec.js | ||
make-absolute-urls_spec.js | ||
mobiledoc-converter_spec.js | ||
packages_spec.js | ||
read-csv_spec.js | ||
request_spec.js | ||
tokens_spec.js | ||
url_spec.js | ||
word-count_spec.js | ||
zip-folder_spec.js |