From a0822eb3442359db27a0f1e504decf7e1a31b8fc Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 21 Sep 2018 17:48:36 +0200 Subject: [PATCH] Add read time script This is a bugfix for the story layout --- _includes/read_time.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/read_time.html diff --git a/_includes/read_time.html b/_includes/read_time.html new file mode 100644 index 0000000..875e7da --- /dev/null +++ b/_includes/read_time.html @@ -0,0 +1,4 @@ + +{% assign words = content | number_of_words %} +{% if words < 360 %}1 minute{% else %}{{ words | divided_by:180 }} minutes{% endif %} read +