Ghost/core
Rosco Kalis 301e1b2419 🎨Improved image counting for the {{reading_time}} helper (#9366)
refs #9200

- We have not yet counted the images within your html, this commit counts images based on the this algorithm: https://blog.medium.com/read-time-and-you-bc2048ab620c
- Added imageCount utility, which counts images using an img-tag regex, amended from the general tag-regex found in wordCount
- Added this imageCount to the {{reading_time}} helper, adding 12 seconds to the reading time for every image
- The feature image is still counted as before
- The first image adds 12 seconds, the second 11, the third 10, and so on
- Images from the tenth onwards add 3 seconds to the reading time
2018-03-05 09:30:15 +01:00
..
client@1c902af744 Updated Ghost-Admin to 1.21.3 2018-02-21 08:19:52 +07:00
server 🎨Improved image counting for the {{reading_time}} helper (#9366) 2018-03-05 09:30:15 +01:00
test 🎨Improved image counting for the {{reading_time}} helper (#9366) 2018-03-05 09:30:15 +01:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00