Ghost/core/server
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
..
adapters Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
admin Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
api Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
apps Refactored apps to have access to a router 2017-11-01 15:02:25 +00:00
auth Improved debug logs for auth utils (#9015) 2017-09-18 16:23:47 +01:00
config 🐛 Fixed redirects upload for various browsers/systems (#9042) 2017-09-22 21:57:43 +02:00
controllers Split renderChannel into controller + renderer (#9218) 2017-11-06 12:17:24 +00:00
data Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
middleware Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
models Added concept of ghost-query debug mode 2017-11-01 15:18:53 +00:00
permissions Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
public 🛠 🙈 Rename ghost-url.js to ghost-sdk.js (#8767) 2017-07-28 18:23:32 +04:00
services Classes must use strict mode 2017-11-01 15:55:06 +00:00
settings 🐛 Theme name is point number (#9184) 2017-10-26 13:54:18 +02:00
site Refactored apps to have access to a router 2017-11-01 15:02:25 +00:00
themes Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
translations Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00
utils Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
views 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
analytics-events.js Add segment analytics for blog data (#8912) 2017-08-22 12:23:23 +01:00
app.js Rename blog -> site 2017-10-26 18:09:56 +01:00
errors.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Used ghost-ignition.debug, removed debug dep (#8881) 2017-08-15 18:29:27 +07:00
i18n.js Improved the usage of missing translation keys (#9081) 2017-10-03 09:47:48 +02:00
index.js Moved apps to /services/ & moved individual tests (#9187) 2017-10-30 12:31:04 +00:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00