From 2d783969efc9e16f07567e9f6f8bbcf0ddb1affb Mon Sep 17 00:00:00 2001 From: Ashish Sinha Date: Mon, 14 Aug 2017 23:14:50 +0530 Subject: [PATCH] time to read feature added --- _layouts/post.html | 13 +++++++++++++ css/base.scss | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/_layouts/post.html b/_layouts/post.html index 6c6063cf..8766ac50 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -9,6 +9,16 @@

{{ page.title }}

+ + +
+ {% assign minutes = content | strip_html | number_of_words | divided_by: 180 %} + {% if minutes == 0 %} + {% assign minutes = 1 %} + {% endif %} +
+ +
{{ page.date | date: "%B %e, %Y" }}
@@ -17,6 +27,9 @@

- {{ page.author }} {% endif %} + + +
diff --git a/css/base.scss b/css/base.scss index b7f3b889..f944e033 100644 --- a/css/base.scss +++ b/css/base.scss @@ -675,6 +675,12 @@ blockquote { color: #8b8b8b; margin-bottom: -25px; } + + .time{ + font-size:12px; + color: #8b8b8b; + + } } // ============== /POST ============== //