2016-06-07 08:03:59 +02:00
|
|
|
|
|
|
|
|
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 %}
|
|
|
|
{{ words | divided_by:site.words_per_minute }} {{ site.data.ui-text[site.locale].minutes_read }}
|
|
|
|
{% endif %}
|
2016-03-22 02:42:55 +01:00
|
|
|
{% else %}
|
2016-06-07 08:03:59 +02:00
|
|
|
{{ site.data.ui-text[site.locale].undefined_words_per_minute }}
|
2016-03-22 02:42:55 +01:00
|
|
|
{% endif %}
|