2016-03-23 03:28:12 +01:00
|
|
|
{% if post.read_time %}
|
|
|
|
{% assign words = post.content | strip_html | number_of_words %}
|
|
|
|
{% elsif page.read_time %}
|
|
|
|
{% assign words = page.content | strip_html | number_of_words %}
|
|
|
|
{% endif %}
|
2016-03-22 02:42:55 +01:00
|
|
|
|
2016-06-07 08:03:59 +02:00
|
|
|
{% if site.words_per_minute %}
|
|
|
|
{% if words < 180 %}
|
|
|
|
{{ site.data.ui-text[site.locale].less_than }} 1 {{ site.data.ui-text[site.locale].minute_read }}
|
|
|
|
{% elsif words < 360 %}
|
|
|
|
1 {{ site.data.ui-text[site.locale].minute_read }}
|
|
|
|
{% else %}
|
2016-06-13 16:25:15 +02:00
|
|
|
{{ words | divided_by:site.words_per_minute }} {{ site.data.ui-text[site.locale].minute_read }}
|
2016-06-07 08:03:59 +02:00
|
|
|
{% endif %}
|
2016-03-22 02:42:55 +01:00
|
|
|
{% else %}
|
2016-06-07 17:32:11 +02:00
|
|
|
{{ site.data.ui-text[site.locale].undefined_wpm }}
|
2016-03-22 02:42:55 +01:00
|
|
|
{% endif %}
|