From d97b70cd1f891d574c647be189b7f5f658ce8183 Mon Sep 17 00:00:00 2001 From: Kale Date: Tue, 8 Jun 2021 10:39:19 -0700 Subject: [PATCH] Update '_layouts/post.html' --- _layouts/post.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -%} ~