diff --git a/_includes/read-time.html b/_includes/read-time.html index e8e9063d..df88d529 100644 --- a/_includes/read-time.html +++ b/_includes/read-time.html @@ -6,9 +6,9 @@ {% assign words = page.content | strip_html | number_of_words %} {% endif %} -{% if words < 180 %} +{% if words < words_per_minute %} {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} -{% elsif words < 360 %} +{% elsif words == words_per_minute %} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} {% else %} {{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} diff --git a/docs/_includes/read-time.html b/docs/_includes/read-time.html index e8e9063d..df88d529 100644 --- a/docs/_includes/read-time.html +++ b/docs/_includes/read-time.html @@ -6,9 +6,9 @@ {% assign words = page.content | strip_html | number_of_words %} {% endif %} -{% if words < 180 %} +{% if words < words_per_minute %} {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} -{% elsif words < 360 %} +{% elsif words == words_per_minute %} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} {% else %} {{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}