Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott MacLellan <s.j.maclell@gmail.com>2015-08-23 00:28:15 +0300
committerScott MacLellan <s.j.maclell@gmail.com>2015-08-23 00:28:15 +0300
commit5f364a2176964340d050fedfbd4fbc77f02f6270 (patch)
tree520663ebd3020088e5fb9c0625287fd5ac2fb3d1
parenta18d1e06fc007245a9774d15a46b2650ce5951a0 (diff)
Removing HTML before checking the word count
-rw-r--r--_layouts/post.html2
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 %}