summaryrefslogtreecommitdiff
path: root/_includes/functions
diff options
context:
space:
mode:
Diffstat (limited to '_includes/functions')
-rw-r--r--_includes/functions/get_reading_time.html16
1 files changed, 2 insertions, 14 deletions
diff --git a/_includes/functions/get_reading_time.html b/_includes/functions/get_reading_time.html
index e1d23fe..0035784 100644
--- a/_includes/functions/get_reading_time.html
+++ b/_includes/functions/get_reading_time.html
@@ -14,20 +14,8 @@
{% assign speed = 160 %}
{% endif %}
-{% assign words = article | number_of_words %}
-
-{% if lang != "en" %}
- {% assign words = words
- | times: 0.6
- | round %}
- {% assign words = article
- | strip_html
- | strip_newlines
- | size
- | times: 0.4
- | plus: words
- | round %}
-{% endif %}
+{%- include functions.html func='get_article_words' -%}
+{% assign words = return %}
{% assign total_mins = words
| divided_by: speed