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 🎨 Improved accessibility markup in default navigation.hbs partial (#9137) 2017-10-12 13:57:18 +02:00
asset.js Asset amends (#8294) 2017-04-10 11:30:21 +02:00
author.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
body_class.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
content.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
date.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
encode.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
excerpt.js 🐛 Fixed custom post excerpt length (#8826) 2017-08-02 15:09:12 +04:00
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 🐛 Added error handling to prev/next post helpers 2017-08-29 10:31:00 +02:00
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 Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
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 Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
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 Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
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 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
reading_time.js Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
register.js Keep the original error in registerAsyncTheme (#8977) 2017-09-05 20:11:59 +02:00
tags.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
template.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
twitter_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00