f509db2177
- Remove extra white-space - Close #317
17 lines
No EOL
632 B
HTML
17 lines
No EOL
632 B
HTML
{% 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 %}
|
|
|
|
{% 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 %}
|
|
{% else %}
|
|
{{ site.data.ui-text[site.locale].undefined_wpm }}
|
|
{% endif %} |