diff options
author | Scott MacLellan <s.j.maclell@gmail.com> | 2015-08-23 00:28:15 +0300 |
---|---|---|
committer | Scott MacLellan <s.j.maclell@gmail.com> | 2015-08-23 00:28:15 +0300 |
commit | 5f364a2176964340d050fedfbd4fbc77f02f6270 (patch) | |
tree | 520663ebd3020088e5fb9c0625287fd5ac2fb3d1 | |
parent | a18d1e06fc007245a9774d15a46b2650ce5951a0 (diff) |
Removing HTML before checking the word count
-rw-r--r-- | _layouts/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 57a238d..44e6ea8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -34,7 +34,7 @@ {% if site.reading_time %} <p class="entry-reading-time"> <i class="fa fa-clock-o"></i> - {% assign readtime = content | number_of_words | divided_by:site.words_per_minute %} + {% assign readtime = content | strip_html | number_of_words | divided_by:site.words_per_minute %} Reading time ~{% if readtime <= 1 %}1 minute{% else %}{{ readtime }} minutes{% endif %} </p><!-- /.entry-reading-time --> {% endif %} |