hacks-guide-minimal-mistake.../_includes/read-time.html

9 lines
385 B
HTML
Raw Normal View History

{% assign words = page.content | strip_html | number_of_words %}
{% 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 %}