aboutsummaryrefslogtreecommitdiff
path: root/_includes/reading-time.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/reading-time.html')
-rw-r--r--_includes/reading-time.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/_includes/reading-time.html b/_includes/reading-time.html
new file mode 100644
index 0000000..2515099
--- /dev/null
+++ b/_includes/reading-time.html
@@ -0,0 +1,7 @@
+{% capture words %}
+{{ content | number_of_words | minus: 180 }}
+{% endcapture %}
+
+{% unless words contains '-' %}
+{{ words | plus: 150 | divided_by: 150 | append: ' min read' }}
+{% endunless %} \ No newline at end of file