diff --git a/_layouts/post.html b/_layouts/post.html index 5811680..97843b2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,6 +1,14 @@ --- layout: default --- + +{% if page.minutes %} + {% assign minutes = page.minutes %} + {% else %} + {% assign minutes = content | number_of_words | divided_by: 180 %} + {% if minutes == 0 %}{% assign minutes = 1 %}{% endif %} + {% endif %} +
@@ -8,7 +16,7 @@ layout: default

- {{ page.date | date: date_format }} + {{ page.date | date: date_format }} | {{ minutes }} minute read {%- if page.modified_date -%} ~