Ghost/core/server/helpers
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
..
tpl
asset.js
author.js
body_class.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
content.js
date.js
encode.js
excerpt.js
facebook_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
foreach.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
get.js
ghost_foot.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
ghost_head.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
has.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
img_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
index.js Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
is.js
meta_description.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
meta_title.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
navigation.js
page_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
pagination.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
plural.js
post_class.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
prev_next.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
proxy.js
reading_time.js Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
register.js
tags.js
template.js
title.js
twitter_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
url.js